{"id":16539525,"url":"https://github.com/rickstaa/action-get-semver","last_synced_at":"2025-03-21T09:32:20.680Z","repository":{"id":39866644,"uuid":"323678168","full_name":"rickstaa/action-get-semver","owner":"rickstaa","description":"Outputs the current/next major, minor, and patch version based on the given semver version.","archived":false,"fork":false,"pushed_at":"2024-10-07T19:24:07.000Z","size":65,"stargazers_count":10,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-12T18:49:17.798Z","etag":null,"topics":["composite","continuous-integration","gh-action","github-action-composite","github-actions","semver","semver-parser","versioning"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/get-semver","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rickstaa.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"github":["rickstaa"]}},"created_at":"2020-12-22T16:29:30.000Z","updated_at":"2024-10-07T19:18:23.000Z","dependencies_parsed_at":"2024-04-25T18:25:41.492Z","dependency_job_id":"63e06502-96d6-48fc-be41-931e02d00fb2","html_url":"https://github.com/rickstaa/action-get-semver","commit_stats":null,"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickstaa%2Faction-get-semver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickstaa%2Faction-get-semver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickstaa%2Faction-get-semver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickstaa%2Faction-get-semver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rickstaa","download_url":"https://codeload.github.com/rickstaa/action-get-semver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244759960,"owners_count":20505716,"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":["composite","continuous-integration","gh-action","github-action-composite","github-actions","semver","semver-parser","versioning"],"created_at":"2024-10-11T18:49:28.139Z","updated_at":"2025-03-21T09:32:20.217Z","avatar_url":"https://github.com/rickstaa.png","language":"Shell","funding_links":["https://github.com/sponsors/rickstaa"],"categories":[],"sub_categories":[],"readme":"# action-get-semver\n\nA simple action that returns the current/next major, minor, and patch version based on the given semver\nversion.\n\n[![Action test](https://github.com/rickstaa/action-get-semver/workflows/Action%20test/badge.svg)](https://github.com/rickstaa/action-get-semver/actions?query=workflow%3A%22Action+test%22)\n[![Depup](https://github.com/rickstaa/action-get-semver/workflows/Depup/badge.svg)](https://github.com/rickstaa/action-get-semver/actions?query=workflow%3ADepup)\n[![Release](https://github.com/rickstaa/action-get-semver/workflows/Release/badge.svg)](https://github.com/rickstaa/action-get-semver/actions?query=workflow%3ARelease)\n[![Docker Image CI](https://github.com/rickstaa/action-get-semver/workflows/Docker%20Image%20CI/badge.svg)](https://github.com/rickstaa/action-get-semver/actions?query=workflow%3A%22Docker+Image+CI%22)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/rickstaa/action-get-semver?logo=github\u0026sort=semver)](https://github.com/rickstaa/action-get-semver/releases)\n\n## Inputs\n\n```yaml\ninputs:\n  bump_level:\n    description: \"Version bump level [major, minor, patch].\"\n    required: False\n    default: \"patch\"\n  verbose:\n    description: \"Print current and next version.\"\n    required: False\n    default: \"false\"\n  frail:\n    description: \"Return exit code of 1 when no version tag is found.\"\n    required: False\n    default: \"false\"\n```\n\n## Outputs\n\n```yaml\noutputs:\n  current_version:\n    description: \"The current version.\"\n  next_version:\n    description: \"The next major version.\"\n  error:\n    descriptor: \"Whether an error was encountered when retrieving the current semver.\"\n```\n\n## Usage\n\n```yaml\nname: release\non:\n  push:\n    branches:\n      - main\njobs:\n  check-version:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n        with:\n          fetch-depth: 0\n      - uses: rickstaa/action-get-semver@v1\n        id: get_semver\n        with:\n          bump_level: \"minor\"\n      - name: Print current and next version\n        run: |\n          echo \"Current version: ${{ steps.get_semver.outputs.current_version  }}\"\n          echo \"Next version: ${{ steps.get_semver.outputs.next_version }}\"\n```\n\n❗ **NOTE:** This action requires the `fetch-depth: 0` argument to be set in the [actions/checkout@v3](https://github.com/actions/checkout) step (see [actions/checkout#fetch-all-history-for-all-tags-and-branches\n](https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches)).\n\n## Contributing\n\nFeel free to open an issue if you have ideas on how to make this GitHub action better or if you want to report a bug! All contributions are welcome. :rocket: Please consult the [contribution guidelines](CONTRIBUTING.md) for more information.\n\n### Acknowledgement\n\nThis action serves as a wrapper around the [bump](https://github.com/haya14busa/bump) package of [@haya14busa](https://github.com/haya14busa/bump/commits?author=haya14busa).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickstaa%2Faction-get-semver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frickstaa%2Faction-get-semver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickstaa%2Faction-get-semver/lists"}