Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
ysawa0 committed Nov 6, 2023
1 parent 9bd416d commit 6cbabd6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,12 @@ jobs:
echo "Current SHA is $CUR_SHA"
if [[ $GITHUB_REF == "refs/heads/$DEFAULT_BRANCH" ]]; then
git pull origin $DEFAULT_BRANCH
LAST_SHA=$(git log --pretty=tformat:"%H" -n2 . | tail -n1)
echo "Last SHA is $LAST_SHA"
pre-commit run --from-ref $LAST_SHA --to-ref $CUR_SHA
pre-commit run --all
else
pre-commit run --from-ref origin/$DEFAULT_BRANCH --to-ref $CUR_SHA
fi
# git fetch origin $DEFAULT_BRANCH
# LAST_SHA=$(git log --pretty=tformat:"%H" -n2 . | tail -n1)
# echo "Last SHA is $LAST_SHA"
# pre-commit run --from-ref $LAST_SHA --to-ref $CUR_SHA

0 comments on commit 6cbabd6

Please sign in to comment.