Skip to content

Commit

Permalink
ci: Fix bump-version workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
janw committed Jan 26, 2024
1 parent b54017c commit 398c5e3
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/bump-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- fix-bump-version

jobs:
bump-version:
Expand Down Expand Up @@ -40,14 +41,19 @@ jobs:
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
dry_run: true
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
changelog_increment_filename: body.md

- run: git verify-commit HEAD
- name: Bail on no change
run: test -s body.md || exit 0

- name: Create GitHub release
uses: ncipollo/release-action@v1
with:
tag: v${{ env.REVISION }}
bodyFile: "body.md"
skipIfReleaseExists: true
- name: Verify commit signature
run: git verify-commit HEAD

# - name: Create GitHub release
# uses: ncipollo/release-action@v1
# with:
# tag: v${{ env.REVISION }}
# bodyFile: "body.md"
# skipIfReleaseExists: true

0 comments on commit 398c5e3

Please sign in to comment.