This Github Action bumps tags your repository with the next Semantic Version for you repository by using Conventional Commits.
This action uses Cogogitto. Once a new version has been tagged you will need to push it to Github. Alternatively, you can configure Cocogitto to perform the push in a cog.toml file in your repository.
You need to have your repository checked out with the full commit history and all tags. You you can do this with the following steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: fetch-tags
run: git fetch --tags origin
shell: bash- id: bump-version
uses: armakuni/github-actions/bump-version@{current_version}- id: bump-version
uses: armakuni/github-actions/bump-version@{current_version}
with:
working-directory: my-repo| Name | Value |
|---|---|
| previous-version | The version before the bump occurred. |
| current-version | The version after the bump. This will be the same as previous-version when no new version is tagged. |
| version-was-bump | Booling value set to true if a new version was tagged. |