diff --git a/.cz.toml b/.cz.toml index 11f80c7..efcd9be 100644 --- a/.cz.toml +++ b/.cz.toml @@ -1,6 +1,6 @@ [tool.commitizen] name = "cz_conventional_commits" -version = "0.23.0" +version = "0.24.0" format = "v$version" update_changelog_on_bump = true major_version_zero = true 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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 58e7aa2..96a36da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 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) ### Feat 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 92b673e..40850ff 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') @@ -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"