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