mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-20 02:37:12 +03:00
ci: if git log fails, don't skip steps and succeed
Eg git log fails after force-push to a PR right now.
This commit is contained in:
parent
3426030a91
commit
df6667232f
4
.github/workflows/linux.yml
vendored
4
.github/workflows/linux.yml
vendored
@ -118,8 +118,8 @@ jobs:
|
||||
|
||||
- name: Skip remaining CI steps if latest commit message begins with ;
|
||||
run: |
|
||||
git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} \
|
||||
| grep -qE '^ *;' || echo "CONTINUE=true" >> $GITHUB_ENV
|
||||
git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog
|
||||
grep -qE '^ *;' $$.gitlog || echo "CONTINUE=true" >> $GITHUB_ENV
|
||||
|
||||
# things to be cached/restored:
|
||||
|
||||
|
4
.github/workflows/mac.yml
vendored
4
.github/workflows/mac.yml
vendored
@ -75,8 +75,8 @@ jobs:
|
||||
|
||||
- name: Skip remaining CI steps if latest commit message begins with ;
|
||||
run: |
|
||||
git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} \
|
||||
| grep -qE '^ *;' || echo "CONTINUE=true" >> $GITHUB_ENV
|
||||
git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog
|
||||
grep -qE '^ *;' $$.gitlog || echo "CONTINUE=true" >> $GITHUB_ENV
|
||||
|
||||
# things to be cached/restored:
|
||||
|
||||
|
4
.github/workflows/push.yml
vendored
4
.github/workflows/push.yml
vendored
@ -86,8 +86,8 @@ jobs:
|
||||
|
||||
- name: Skip remaining CI steps if latest commit message begins with ;
|
||||
run: |
|
||||
git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} \
|
||||
| grep -qE '^ *;' || echo "CONTINUE=true" >> $GITHUB_ENV
|
||||
git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog
|
||||
grep -qE '^ *;' $$.gitlog || echo "CONTINUE=true" >> $GITHUB_ENV
|
||||
|
||||
# things to be cached/restored:
|
||||
|
||||
|
4
.github/workflows/windows.yml
vendored
4
.github/workflows/windows.yml
vendored
@ -70,8 +70,8 @@ jobs:
|
||||
- name: Skip remaining CI steps if latest commit message begins with ;
|
||||
shell: bash
|
||||
run: |
|
||||
git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} \
|
||||
| grep -qE '^ *;' || echo "CONTINUE=true" >> $GITHUB_ENV
|
||||
git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog
|
||||
grep -qE '^ *;' $$.gitlog || echo "CONTINUE=true" >> $GITHUB_ENV
|
||||
|
||||
# things to be cached/restored:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user