Skip to content

Commit 22122a3

Browse files
committed
try git fetch origin main to only fetch main branch
1 parent 70fd792 commit 22122a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Check if package.json was modified
2121
id: pub
2222
run: |
23-
git fetch --deepen=1 && git checkout main
23+
git fetch origin main && git checkout main
2424
if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -q "lib/package.json"; then
2525
echo "file_changed=true" >> $GITHUB_ENV
2626
else

0 commit comments

Comments
 (0)