Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.68 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.68 KB

Bump Version Action

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.

Usage

Prerequites

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

Bumping the version

- id: bump-version
  uses: armakuni/github-actions/bump-version@{current_version}

In a custom path

- id: bump-version
  uses: armakuni/github-actions/bump-version@{current_version}
  with:
    working-directory: my-repo

Outputs

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.