Skip to content

Commit 45360fb

Browse files
authored
CI: add debug output for autorelease.yml
1 parent a2817dc commit 45360fb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/autorelease.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,28 @@ jobs:
106106
env:
107107
GH_TOKEN: ${{ steps.app-token.outputs.token }}
108108

109+
- name: Debug GitHub App authentication
110+
run: |
111+
echo "Authenticated user:"
112+
gh api user --jq '{login: .login, id: .id, type: .type}'
113+
114+
echo "Repository permissions:"
115+
gh api repos/${{ github.repository }} --jq '.permissions'
116+
117+
echo "Branch protection rules:"
118+
gh api repos/${{ github.repository }}/branches/${{ github.ref_name }}/protection --jq '.restrictions'
119+
env:
120+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
121+
109122
- name: Commit and push changes
110123
run: |
124+
echo "Verifying token and auth status:"
125+
gh auth status
126+
127+
echo "Attempting explicit login:"
128+
echo "${{ steps.app-token.outputs.token }}" | gh auth login --with-token
129+
gh auth status
130+
111131
git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]'
112132
git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>'
113133
git add project/EffektVersion.scala

0 commit comments

Comments
 (0)