Skip to content

Commit bf661a5

Browse files
committed
ci: ignore merge branch main and reverts
1 parent 2e26d0f commit bf661a5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@ jobs:
2929
id: current_sha
3030
run: |
3131
cd genesis
32-
CURRENT_SHA=$(git log -n 1 --pretty=format:"%H" --invert-grep --grep='^ci:')
33-
echo "last commit SHA (ci ignored) : $CURRENT_SHA"
32+
CURRENT_SHA=$(
33+
git log --pretty=format:"%H" \
34+
--invert-grep --grep="^ci:" \
35+
--invert-grep --grep="^Merge branch 'main'" \
36+
--invert-grep --grep="^Revert " \
37+
-n 1
38+
)
39+
echo "last commit SHA : $CURRENT_SHA"
3440
echo "current_sha=$CURRENT_SHA" >> $GITHUB_OUTPUT
3541
3642
- name: Get last version tag and SHA

0 commit comments

Comments
 (0)