From 1dcad82a0e1c591e9ee630efc504ff0c2242c310 Mon Sep 17 00:00:00 2001 From: Paul Lockaby <633173+plockaby@users.noreply.github.com> Date: Fri, 20 Dec 2024 11:58:06 -0800 Subject: [PATCH 1/6] Update entrypoint.sh --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 92b673e..67c9c7e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -65,7 +65,7 @@ if [[ $INPUT_DEVRELEASE ]]; then CZ_CMD+=('--devrelease' "$INPUT_DEVRELEASE") fi if [[ $INPUT_LOCAL_VERSION == 'true' ]]; then - CZ_CMD+=('--local_version') + CZ_CMD+=('--local-version') fi if [[ $INPUT_COMMIT == 'false' ]]; then CZ_CMD+=('--files-only') From a49cac8e98f3954a16e107f026f71cf84b17706c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 21 Dec 2024 07:35:56 +0000 Subject: [PATCH 2/6] =?UTF-8?q?bump:=20version=200.23.0=20=E2=86=92=200.23?= =?UTF-8?q?.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cz.toml | 2 +- CHANGELOG.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.cz.toml b/.cz.toml index 11f80c7..01f0552 100644 --- a/.cz.toml +++ b/.cz.toml @@ -1,6 +1,6 @@ [tool.commitizen] name = "cz_conventional_commits" -version = "0.23.0" +version = "0.23.1" format = "v$version" update_changelog_on_bump = true major_version_zero = true diff --git a/CHANGELOG.md b/CHANGELOG.md index 58e7aa2..d3e478d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## 0.23.1 (2024-12-21) + ## 0.23.0 (2024-12-09) ### Feat From 0121edccb73c353501819d6b35f28fc753872c28 Mon Sep 17 00:00:00 2001 From: Nicolas Karolak Date: Sun, 22 Sep 2024 09:55:05 +0200 Subject: [PATCH 3/6] ci: publish major and minor tags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: ```yaml - 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: ```bash $ 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 --- .github/workflows/bumpversion.yaml | 4 ++-- .github/workflows/update_semver.yml | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/update_semver.yml diff --git a/.github/workflows/bumpversion.yaml b/.github/workflows/bumpversion.yaml index 76e8e65..bb486f6 100644 --- a/.github/workflows/bumpversion.yaml +++ b/.github/workflows/bumpversion.yaml @@ -17,7 +17,7 @@ jobs: - name: Create bump and changelog uses: commitizen-tools/commitizen-action@master with: - github_token: "${{ secrets.GITHUB_TOKEN }}" + github_token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" changelog_increment_filename: body.md - name: Release uses: softprops/action-gh-release@v1 @@ -25,4 +25,4 @@ jobs: body_path: "body.md" tag_name: "${{ env.REVISION }}" env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + GITHUB_TOKEN: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" diff --git a/.github/workflows/update_semver.yml b/.github/workflows/update_semver.yml new file mode 100644 index 0000000..dc41a80 --- /dev/null +++ b/.github/workflows/update_semver.yml @@ -0,0 +1,19 @@ +name: Update Major Minor Tags + +on: + push: + branches-ignore: + - "**" + tags: + - "*.*.*" + workflow_dispatch: + +jobs: + update_major_minor_tags: + name: Make sure major and minor tags are up to date on a patch release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Run Update semver + uses: haya14busa/action-update-semver@v1 From e9a82c8f48ec783da3a42baaadee6c85acff9c4e Mon Sep 17 00:00:00 2001 From: Christian Kagerer Date: Mon, 17 Feb 2025 13:43:46 +0100 Subject: [PATCH 4/6] feat: add support for manual version bumping --- action.yml | 3 +++ entrypoint.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/action.yml b/action.yml index f2f540c..a817f96 100644 --- a/action.yml +++ b/action.yml @@ -103,3 +103,6 @@ inputs: actor: description: "The account that will be used to perform git operations, defaults to the GITHUB_ACTOR" required: false + manual_version: + description: "Manually specify the version to bump to" + required: false diff --git a/entrypoint.sh b/entrypoint.sh index 67c9c7e..40850ff 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -79,6 +79,9 @@ fi if [[ $INPUT_GIT_REDIRECT_STDERR == 'true' ]]; then CZ_CMD+=('--git-output-to-stderr') fi +if [[ $INPUT_MANUAL_VERSION ]]; then + CZ_CMD+=("$INPUT_MANUAL_VERSION") +fi if [[ $INPUT_CHANGELOG_INCREMENT_FILENAME ]]; then CZ_CMD+=('--changelog-to-stdout') echo "${CZ_CMD[@]}" ">$INPUT_CHANGELOG_INCREMENT_FILENAME" From 863a354b5ab96f0b01f51fc9f9e80c36fb906581 Mon Sep 17 00:00:00 2001 From: Christian Kagerer Date: Sun, 23 Feb 2025 10:51:01 +0100 Subject: [PATCH 5/6] ci: trigger build From 5b0848cd060263e24602d1eba03710e056ef7711 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 25 Feb 2025 02:28:19 +0000 Subject: [PATCH 6/6] =?UTF-8?q?bump:=20version=200.23.1=20=E2=86=92=200.24?= =?UTF-8?q?.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cz.toml | 2 +- CHANGELOG.md | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.cz.toml b/.cz.toml index 01f0552..efcd9be 100644 --- a/.cz.toml +++ b/.cz.toml @@ -1,6 +1,6 @@ [tool.commitizen] name = "cz_conventional_commits" -version = "0.23.1" +version = "0.24.0" format = "v$version" update_changelog_on_bump = true major_version_zero = true diff --git a/CHANGELOG.md b/CHANGELOG.md index d3e478d..96a36da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.24.0 (2025-02-25) + +### Feat + +- add support for manual version bumping + ## 0.23.1 (2024-12-21) ## 0.23.0 (2024-12-09)