Skip to content

Commit 79b38d5

Browse files
authored
fix: Adds debugging output. (#172)
1 parent 1d3122f commit 79b38d5

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

.github/workflows/dist-pr.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,40 @@ jobs:
2626
- name: Checkout code
2727
uses: actions/checkout@v3
2828
with:
29-
ref: ${{ github.event.after }} # Check out the *new* commit on dist
30-
token: ${{ secrets.GH_MERGE_TOKEN }} # Use a dedicated PAT!
29+
ref: ${{ github.event.after }}
30+
token: ${{ secrets.GH_MERGE_TOKEN }}
31+
32+
- name: Debug - Print Event Payload
33+
run: |
34+
echo "GitHub Event Name: ${{ github.event_name }}"
35+
echo "GitHub Ref: ${{ github.ref }}"
36+
echo "GitHub After Commit: ${{ github.event.after }}"
37+
echo "GitHub Repository: ${{ github.repository }}"
38+
39+
- name: Debug - List Branches
40+
run: |
41+
git branch -a
3142
3243
- name: Create Pull Request
3344
uses: peter-evans/create-pull-request@v5
3445
with:
46+
token: ${{ secrets.GH_MERGE_TOKEN }}
3547
commit-message: 'chore: automated output update (dist)'
3648
title: 'chore: automated output update (dist)'
3749
body: 'This PR contains updated build output from the dist branch.'
38-
branch: 'dist-to-main-pr' # Use a dedicated PR branch
50+
branch: 'dist-to-main-pr'
3951
base: main
4052
labels: |
4153
automated pr
4254
dist-update
43-
draft: false
55+
draft: false
56+
57+
- name: Debug - List Branches After PR Creation (Attempt)
58+
run: |
59+
git branch -a
60+
61+
- name: Debug - List Pull Requests
62+
run: |
63+
gh pr list --state all --base main
64+
env:
65+
GH_TOKEN: ${{ secrets.GH_MERGE_TOKEN }}

0 commit comments

Comments
 (0)