Skip to content

Commit

Permalink
try git fetch origin main to only fetch main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Jan 1, 2025
1 parent 70fd792 commit 22122a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Check if package.json was modified
id: pub
run: |
git fetch --deepen=1 && git checkout main
git fetch origin main && git checkout main
if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -q "lib/package.json"; then
echo "file_changed=true" >> $GITHUB_ENV
else
Expand Down

0 comments on commit 22122a3

Please sign in to comment.