Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
paperclip

GitHub Action

Actions Ecosystem Action Release Label

v1.0.0

Actions Ecosystem Action Release Label

paperclip

Actions Ecosystem Action Release Label

Output semver update level from a label

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Actions Ecosystem Action Release Label

uses: actions-ecosystem/[email protected]

Learn more about this action in actions-ecosystem/action-release-label

Choose a version

Action Release Label

actions-workflow-lint release license

screenshot

This is a GitHub Action to output a semver update level major, minor, patch from a pull request release label.

For example, if a pull request has the label release/minor, this action outputs minor as level.

It would be more useful to use this with other GitHub Actions' outputs.

It's recommended to use this with actions-ecosystem/action-bump-semver and actions-ecosystem/action-push-tag.

Inputs

NAME DESCRIPTION TYPE REQUIRED DEFAULT
label_prefix A prefix for labels that indicate semver level {major, minor, patch}. string false release/
event An event that triggers this action. Must be a pull request event. string false ${{ toJson(github.event) }}

Outputs

NAME DESCRIPTION TYPE
level A semver update level {major, minor, patch}. string

Note

This action is inspired by haya14busa/action-bumpr.

License

Copyright 2020 The Actions Ecosystem Authors.

Action Release Label is released under the Apache License 2.0.