Skip to content

Commit 145f9c2

Browse files
authored
fix: Update dist-pr.yml (#185)
Removed the explicit ref, as that would have left things in a detached head state (medieval times). Omitting the ref causes it to default to checking out the entire branch. This permits the subsequent workflows to access the needed parts of the branch.
1 parent 0fbae08 commit 145f9c2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/dist-pr.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
- name: Checkout code
2727
uses: actions/checkout@v3
2828
with:
29-
ref: ${{ github.event.after }} # Check out the *new* commit on dist
29+
# No ref specified: defaults to checking out the 'dist' branch
30+
token: ${{ secrets.GH_MERGE_TOKEN }}
3031

3132
- name: Create Pull Request
3233
uses: peter-evans/create-pull-request@v5
@@ -40,4 +41,4 @@ jobs:
4041
labels: |
4142
automated pr
4243
dist-update
43-
draft: false # Or true, if you want to review before enabling auto-merge
44+
draft: false # Or true, if you want to review before enabling auto-merge

0 commit comments

Comments
 (0)