Skip to content

Commit d9ed453

Browse files
committed
ci: ignore ci commits + exit 1 if no new commit
1 parent ade21e4 commit d9ed453

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/scheduled-version-update.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
id: current_sha
2525
run: |
2626
cd genesis
27-
CURRENT_SHA=$(git log -n 1 --pretty=format:"%H")
28-
echo "last commit SHA : $CURRENT_SHA"
27+
CURRENT_SHA=$(git log -n 1 --pretty=format:"%H" --invert-grep --grep='^ci:')
28+
echo "last commit SHA (ci ignored) : $CURRENT_SHA"
2929
echo "current_sha=$CURRENT_SHA" >> $GITHUB_OUTPUT
3030
3131
- name: Get last version tag and SHA
@@ -44,7 +44,7 @@ jobs:
4444
run: |
4545
if [ "${{ steps.current_sha.outputs.current_sha }}" = "${{ steps.last_tag.outputs.tag_sha }}" ]; then
4646
echo "No new commit since version. Exiting."
47-
exit 0
47+
exit 1
4848
fi
4949
5050
- name: Get version from changelog

0 commit comments

Comments
 (0)