Skip to content

Commit 565443d

Browse files
committed
try checking out to github.event.before
1 parent 744366d commit 565443d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ jobs:
1515
- uses: actions/checkout@v4
1616
with:
1717
token: ${{ secrets.GITHUB_TOKEN }}
18+
ref: ${{ github.event.before }}
1819

1920
- name: Check if package.json was modified
2021
id: pub
2122
run: |
22-
git checkout ${{ github.event.before }} && ls && git checkout main
23+
git checkout main
2324
echo "diff=$(git diff ${{ github.event.before }}:lib/package.json lib/package.json)" >> $GITHUB_OUTPUT
2425
2526
- name: Exit early if lib/package.json was modified

0 commit comments

Comments
 (0)