Skip to content

Commit 8f9b193

Browse files
authored
fix(ci): don’t fail bump job if there are no commits to bump (#428)
1 parent 630b840 commit 8f9b193

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,11 @@ jobs:
6060
git config --global user.email "$USER_EMAIL"
6161
git config --list --global # For debug purposes.
6262
63+
# In some cases a user may merge commits that don't cause a version bump, which causes commitizen
64+
# to fail with error code 21 (NoneIncrementExit). Thus we silence that particular error to avoid
65+
# failing this job: https://commitizen-tools.github.io/commitizen/bump/#avoid-raising-errors
6366
- name: Create changelog and bump
64-
run: cz bump --changelog --yes
67+
run: cz --no-raise 21 bump --changelog --yes
6568

6669
- name: Push the release
6770
run: |

0 commit comments

Comments
 (0)