We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5a73fe commit 8888033Copy full SHA for 8888033
1 file changed
.github/workflows/ci.yaml
@@ -65,11 +65,10 @@ jobs:
65
- name: Run pre-commits
66
run: |
67
CUR_SHA=$(git log --pretty=tformat:"%H" -n1 .)
68
+ LAST_SHA=$(git log --pretty=tformat:"%H" -n2 | tail -n1)
69
git fetch
70
if [[ $GITHUB_REF == 'refs/heads/main' ]]; then
- LAST_SHA=$(git rev-parse HEAD^)
71
pre-commit run --from-ref $LAST_SHA --to-ref $CUR_SHA
72
else
73
pre-commit run --from-ref origin/main --to-ref $CUR_SHA
74
fi
75
- # pre-commit run --from-ref origin/main --to-ref $CUR_SHA
0 commit comments