Skip to content

Commit 1d8ff75

Browse files
committed
Add debugging steps to understand the nature of the permissions error in Push commits step.
1 parent 1d7d5fe commit 1d8ff75

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

Diff for: .github/workflows/publish.yml

+21-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: brew pr-pull
22
permissions:
3-
contents: write
43
actions: write
4+
contents: write
5+
pull-requests: write
56
on:
67
pull_request_target:
78
types:
@@ -27,6 +28,25 @@ jobs:
2728
PULL_REQUEST: ${{ github.event.pull_request.number }}
2829
run: brew pr-pull --debug --tap="$GITHUB_REPOSITORY" "$PULL_REQUEST"
2930

31+
# Debug: Show commit log (last 5 commits)
32+
- name: Show commit log (last 5 commits)
33+
run: git log -n 5 --oneline
34+
35+
# Debug: Show contents of .git/HEAD
36+
- name: Show .git/HEAD
37+
run: cat .git/HEAD
38+
39+
# Debug: Show contents of .git/logs/HEAD
40+
- name: Show .git logs
41+
run: cat .git/logs/HEAD
42+
43+
# Debug: Upload workpace state
44+
- name: Upload workspace state
45+
uses: actions/upload-artifact@v2
46+
with:
47+
name: workspace-state-after
48+
path: .
49+
3050
- name: Push commits
3151
uses: Homebrew/actions/git-try-push@master
3252
with:

0 commit comments

Comments
 (0)