Skip to content

Commit

Permalink
ci: 💚 fix CI logic when there's no version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwilter committed Sep 4, 2024
1 parent 17c3bcd commit 345d960
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ jobs:

- name: Check if version bump is needed
id: check
continue-on-error: true
run: |
cz bump --dry-run
echo "bump=$(cz bump --dry-run 2>/dev/null | grep -q 'bump:' && echo 'yes' || echo 'no')" >> $GITHUB_OUTPUT
cz bump --dry-run || exit 0
echo "bump=$(cz bump --dry-run 2>&1 | grep -q 'bump:' && echo 'yes' || echo 'no')" >> $GITHUB_OUTPUT
- name: Set up Git user
run: |
Expand Down

0 comments on commit 345d960

Please sign in to comment.