{"id":13625196,"url":"https://github.com/actions-ecosystem/action-release-label","last_synced_at":"2025-06-30T08:36:10.865Z","repository":{"id":40358315,"uuid":"261323741","full_name":"actions-ecosystem/action-release-label","owner":"actions-ecosystem","description":"🏷️ GitHub Action to output a semver update level from a pull request release label","archived":false,"fork":false,"pushed_at":"2023-05-04T14:18:38.000Z","size":191,"stargazers_count":50,"open_issues_count":5,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-15T22:14:46.974Z","etag":null,"topics":["actions","github","label"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/actions-ecosystem-action-release-label","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/actions-ecosystem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-05T00:10:09.000Z","updated_at":"2023-11-07T12:54:30.000Z","dependencies_parsed_at":"2024-06-14T09:15:58.893Z","dependency_job_id":null,"html_url":"https://github.com/actions-ecosystem/action-release-label","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-ecosystem%2Faction-release-label","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-ecosystem%2Faction-release-label/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-ecosystem%2Faction-release-label/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-ecosystem%2Faction-release-label/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actions-ecosystem","download_url":"https://codeload.github.com/actions-ecosystem/action-release-label/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227578592,"owners_count":17788903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","github","label"],"created_at":"2024-08-01T21:01:52.084Z","updated_at":"2024-12-01T14:32:02.338Z","avatar_url":"https://github.com/actions-ecosystem.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Action Release Label\n\n[![actions-workflow-lint][actions-workflow-lint-badge]][actions-workflow-lint]\n[![release][release-badge]][release]\n[![license][license-badge]][license]\n\n![screenshot](./docs/assets/screenshot-labels.png)\n\nThis is a GitHub Action to output a semver update level `major`, `minor`, `patch` from a pull request *release label*.\n\nFor example, if a pull request has the label `release/minor`, this action outputs `minor` as level.\n\nIt would be more useful to use this with other GitHub Actions' outputs.\nIt's recommended to use this with [actions-ecosystem/action-bump-semver](https://github.com/actions-ecosystem/action-bump-semver) and [actions-ecosystem/action-push-tag](https://github.com/actions-ecosystem/action-push-tag).\n\nThis action supports `pull_request` and `push` events.\n\n## Prerequisites\n\nIt's necessary to create labels with the `inputs.label_prefix` prefix and the `major`, `minor`, `patch` suffix before getting started with this action.\n\nBy default, they're `release/major`, `release/minor`, and `release/patch`.\n\n## Inputs\n\n|      NAME      |                                                                         DESCRIPTION                                                                         |   TYPE   | REQUIRED |  DEFAULT   |\n| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | ---------- |\n| `label_prefix` | A prefix for labels that indicate semver level {`major`, `minor`, `patch`}.                                                                                 | `string` | `false`  | `release/` |\n| `labels`       | The list of labels for the pull request. Separated with line breaks if there're multiple labels. Required for `push` events, not for `pull_request` events. | `string` | `false`  | `N/A`      |\n\nIt would be easy to prepare `inputs.labels` with [actions-ecosystem/action-get-merged-pull-request](https://github.com//actions-ecosystem/action-get-merged-pull-request).\n\n## Outputs\n\n|  NAME   |                  DESCRIPTION                   |   TYPE   |\n|---------|------------------------------------------------|----------|\n| `level` | A semver update level `{major, minor, patch}`. | `string` |\n\n## Example\n\n### Simple\n\n```yaml\nname: Push a new tag with Pull Request\n\non:\n  pull_request:\n    types: [closed]\n\njobs:\n  release:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n\n      - uses: actions-ecosystem/action-release-label@v1\n        id: release-label\n        if: ${{ github.event.pull_request.merged == true }}\n\n      - uses: actions-ecosystem/action-get-latest-tag@v1\n        id: get-latest-tag\n        if: ${{ steps.release-label.outputs.level != null }}\n\n      - uses: actions-ecosystem/action-bump-semver@v1\n        id: bump-semver\n        if: ${{ steps.release-label.outputs.level != null }}\n        with:\n          current_version: ${{ steps.get-latest-tag.outputs.tag }}\n          level: ${{ steps.release-label.outputs.level }}\n\n      - uses: actions-ecosystem/action-push-tag@v1\n        if: ${{ steps.release-label.outputs.level != null }}\n        with:\n          tag: ${{ steps.bump-semver.outputs.new_version }}\n          message: '${{ steps.bump-semver.outputs.new_version }}: PR #${{ github.event.pull_request.number }} ${{ github.event.pull_request.title }}'\n```\n\n## Note\n\nThis action is inspired by [haya14busa/action-bumpr](https://github.com/haya14busa/action-bumpr).\n\n## License\n\nCopyright 2020 The Actions Ecosystem Authors.\n\nAction Release Label is released under the [Apache License 2.0](./LICENSE).\n\n\u003c!-- badge links --\u003e\n\n[actions-workflow-lint]: https://github.com/actions-ecosystem/action-release-label/actions?query=workflow%3ALint\n[actions-workflow-lint-badge]: https://img.shields.io/github/workflow/status/actions-ecosystem/action-release-label/Lint?label=Lint\u0026style=for-the-badge\u0026logo=github\n\n[release]: https://github.com/actions-ecosystem/action-release-label/releases\n[release-badge]: https://img.shields.io/github/v/release/actions-ecosystem/action-release-label?style=for-the-badge\u0026logo=github\n\n[license]: LICENSE\n[license-badge]: https://img.shields.io/github/license/actions-ecosystem/action-add-labels?style=for-the-badge\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-ecosystem%2Faction-release-label","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factions-ecosystem%2Faction-release-label","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-ecosystem%2Faction-release-label/lists"}