We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7019b06 commit 57cb27aCopy full SHA for 57cb27a
.github/workflows/ci.yaml
@@ -25,8 +25,8 @@ jobs:
25
# check if commit exists first (e.g. it doesn't if it was force pushed)
26
# or fall back to HEAD~1
27
run: |
28
- git cat-file -t ${{ github.event.before }} > /dev/null
29
- if [[ $? -eq "0" ]]; then
+ git cat-file -t ${{ github.event.before }} > /dev/null || COMMIT_NOT_FOUND=true
+ if [[ -z "$COMMIT_NOT_FOUND" ]]; then
30
commitlint -V --from ${{ github.event.before }}
31
else
32
commitlint -V --from HEAD~1
0 commit comments