Skip to content

Commit 42b8ab0

Browse files
authored
fix: Update dist-pr.yml (#195)
Another in a seemingly endless series of changes to try and get this workflow to properly create a PR. This change reverts the file back to a simpler state: - Removes ref from checkout to ensure the dist branch is correctly checked out. Hopefully we'll avoid a detached head (although at this point decapitation is beginning to sound like a good option) - Provide only branch and base, and trust the CPR step to execute as intended. We were being far to clever before, and it's not just an ego thing: it's existential!!!
1 parent 1ec3bf7 commit 42b8ab0

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

.github/workflows/dist-pr.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,7 @@ jobs:
2626
- name: Checkout code
2727
uses: actions/checkout@v3
2828
with:
29-
ref: dist
3029
token: ${{ secrets.GH_MERGE_TOKEN }}
31-
fetch-depth: 0 # Fetch entire history
32-
33-
- name: Get Previous Commit SHA
34-
id: get-previous-commit
35-
run: echo "previous_commit=$(git rev-parse HEAD^)" >> $GITHUB_OUTPUT
3630

3731
- name: Create Pull Request
3832
uses: peter-evans/create-pull-request@v5
@@ -47,4 +41,3 @@ jobs:
4741
automated pr
4842
dist-update
4943
draft: false # Or true, if you want to review before enabling auto-merge
50-
head: dist

0 commit comments

Comments
 (0)