Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Fix bump-version workflow #66

Merged
merged 1 commit into from
Jan 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/bump-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:

- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
id: gpg-import
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
Expand All @@ -38,14 +39,21 @@ jobs:
run: gpg -K

- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
uses: janw/commitizen-action@add-previous-rev-to-env
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
changelog_increment_filename: body.md
git_name: ${{ steps.gpg-import.outputs.name }}
git_email: ${{ steps.gpg-import.outputs.email }}

- run: git verify-commit HEAD
- run: echo $PREVIOUS_REVISION => $REVISION

- name: Verify commit signature
if: env.REVISION != env.PREVIOUS_REVISION
run: git verify-commit HEAD

- name: Create GitHub release
if: env.REVISION != env.PREVIOUS_REVISION
uses: ncipollo/release-action@v1
with:
tag: v${{ env.REVISION }}
Expand Down
Loading