commitizen-action icon indicating copy to clipboard operation
commitizen-action copied to clipboard

ci: publish major and minor tags

Open nikaro opened this issue 1 year ago • 1 comments

Make sure major and minor tags are up to date on a patch release.

This would allow the common practice to use major tag on the action:

- name: Create bump and changelog
  uses: commitizen-tools/commitizen-action@0

(Ideally you may want to prefix version with v 🤷)

This what this third party action does under the hood:

$ TAG="0.21.0"
$ MINOR="${TAG%.*}"
$ echo $MINOR
0.21
$ MAJOR="${MINOR%.*}"
$ echo $MAJOR
0

This is used here for example: https://github.com/astral-sh/setup-uv/blob/main/.github/workflows/update-major-minor-tags.yml

nikaro avatar Sep 22 '24 08:09 nikaro

Since you are using the default token with ${{ secrets.GITHUB_TOKEN }} it may not be triggered automatically, though :-/

I added the workflow_dispatch trigger to allow to run it manually on tags.

nikaro avatar Sep 22 '24 08:09 nikaro

Please, update the bump version to use secrets.PERSONAL_ACCESS_TOKEN, I've added the secret

woile avatar Feb 04 '25 12:02 woile

Please, update the bump version to use secrets.PERSONAL_ACCESS_TOKEN, I've added the secret

Hi, i've done it.

nikaro avatar Feb 05 '25 09:02 nikaro