From c22b4d206440f5b3fe898b893ce372e7637082fe Mon Sep 17 00:00:00 2001 From: Yuki Sawa Date: Sat, 4 Nov 2023 20:41:42 -0700 Subject: [PATCH] clean --- .github/workflows/ci.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 498f91f..dae39d8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -54,12 +54,14 @@ jobs: - name: Run pre-commits run: | - # pre-commit run --all-files CUR_SHA=$(git log --pretty=tformat:"%H" -n1 .) echo $CUR_SHA echo ${{ env.BASE_COMMIT_ID }} - # pre-commit run --from-ref ${{ env.BASE_COMMIT_ID }} --to-ref $CUR_SHA + git fetch pre-commit run --from-ref origin/main --to-ref $CUR_SHA + + # pre-commit run --from-ref ${{ env.BASE_COMMIT_ID }} --to-ref $CUR_SHA + # pre-commit run --all-files # pre-commit run --from-ref origin/main --to-ref HEAD # run: | # BASE_COMMIT_ID=$(git rev-parse origin/main)