Skip to content

Commit

Permalink
CI: add debug output for autorelease.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jiribenes authored Sep 16, 2024
1 parent a2817dc commit 45360fb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/autorelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,28 @@ jobs:
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}

- name: Debug GitHub App authentication
run: |
echo "Authenticated user:"
gh api user --jq '{login: .login, id: .id, type: .type}'
echo "Repository permissions:"
gh api repos/${{ github.repository }} --jq '.permissions'
echo "Branch protection rules:"
gh api repos/${{ github.repository }}/branches/${{ github.ref_name }}/protection --jq '.restrictions'
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}

- name: Commit and push changes
run: |
echo "Verifying token and auth status:"
gh auth status
echo "Attempting explicit login:"
echo "${{ steps.app-token.outputs.token }}" | gh auth login --with-token
gh auth status

git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]'
git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>'
git add project/EffektVersion.scala
Expand Down

0 comments on commit 45360fb

Please sign in to comment.