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 6f136c7 commit 9bd416dCopy full SHA for 9bd416d
.github/workflows/ci.yaml
@@ -72,13 +72,14 @@ jobs:
72
73
git fetch
74
CUR_SHA=$(git log --pretty=tformat:"%H" -n1 . | tail -n1)
75
- LAST_SHA=$(git log --pretty=tformat:"%H" -n3 . | tail -n1)
76
77
echo "Default branch is $DEFAULT_BRANCH"
78
echo "Current SHA is $CUR_SHA"
79
- echo "Last SHA is $LAST_SHA"
80
81
if [[ $GITHUB_REF == "refs/heads/$DEFAULT_BRANCH" ]]; then
+ git pull origin $DEFAULT_BRANCH
+ LAST_SHA=$(git log --pretty=tformat:"%H" -n2 . | tail -n1)
82
+ echo "Last SHA is $LAST_SHA"
83
pre-commit run --from-ref $LAST_SHA --to-ref $CUR_SHA
84
else
85
pre-commit run --from-ref origin/$DEFAULT_BRANCH --to-ref $CUR_SHA
0 commit comments