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 9bd416d commit 6cbabd6Copy full SHA for 6cbabd6
.github/workflows/ci.yaml
@@ -77,10 +77,12 @@ jobs:
77
echo "Current SHA is $CUR_SHA"
78
79
if [[ $GITHUB_REF == "refs/heads/$DEFAULT_BRANCH" ]]; then
80
- git pull origin $DEFAULT_BRANCH
81
- 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
+ pre-commit run --all
84
else
85
pre-commit run --from-ref origin/$DEFAULT_BRANCH --to-ref $CUR_SHA
86
fi
+
+ # git fetch origin $DEFAULT_BRANCH
+ # LAST_SHA=$(git log --pretty=tformat:"%H" -n2 . | tail -n1)
87
+ # echo "Last SHA is $LAST_SHA"
88
+ # pre-commit run --from-ref $LAST_SHA --to-ref $CUR_SHA
0 commit comments