Skip to content

Commit 6bdb1e3

Browse files
authored
fix: Update dist-pr.yml (#192)
Adds fetch-depth: 2. This tells actions/checkout to fetch the current commit and the preceding commit, ensuring that github.event.before will be available. Should solve the newly resurrected detached head problem.
1 parent 197a0b2 commit 6bdb1e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/dist-pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
with:
2929
ref: dist
3030
token: ${{ secrets.GH_MERGE_TOKEN }}
31+
fetch-depth: 2
3132

3233
- name: Checkout Previous Commit
3334
run: git checkout ${{ github.event.before }}

0 commit comments

Comments
 (0)