From 6cbabd6711fc1f63c7efad762ed31d3f7ad0dcd3 Mon Sep 17 00:00:00 2001 From: Yuki Sawa Date: Mon, 6 Nov 2023 08:52:01 -0800 Subject: [PATCH] clean --- .github/workflows/ci.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f844bff..b0b3e78 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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