Skip to content

Commit cae3dc8

Browse files
committed
Need to fetch origin/master
1 parent 1a416df commit cae3dc8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/auto-format.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
if: steps.check_enabled.outputs.enabled == 'true' && steps.check_loop.outputs.skip != 'true'
6565
run: |
6666
DEFAULT_BRANCH="${{ github.event.repository.default_branch }}"
67+
git fetch origin "$DEFAULT_BRANCH" --depth=0
6768
DIFF_TARGET=$(git merge-base "origin/$DEFAULT_BRANCH" HEAD 2>/dev/null || echo "origin/$DEFAULT_BRANCH")
6869
6970
./vendor/bin/pint --parallel --diff="$DIFF_TARGET"

0 commit comments

Comments
 (0)