File tree Expand file tree Collapse file tree 1 file changed +19
-6
lines changed
Expand file tree Collapse file tree 1 file changed +19
-6
lines changed Original file line number Diff line number Diff line change 11name : Semantic Release
2+ run-name : ${{ github.actor }} is automatically releasing
23
34on :
45 push :
56 branches :
67 - main
78 - dev
89
9- permissions :
10- contents : write
11- issues : write
12- pull-requests : write
13- id-token : write
14-
1510jobs :
1611 test :
1712 runs-on : ubuntu-latest
5247 fetch-depth : 0
5348 token : ${{ steps.generate_token.outputs.token }}
5449
50+ - name : Debug token & actor
51+ env :
52+ APP_TOKEN : ${{ steps.generate_token.outputs.token }}
53+ run : |
54+ echo "--- git remote ---"
55+ git remote -v || true
56+ echo
57+ echo "--- git config user ---"
58+ git config user.name || true
59+ git config user.email || true
60+ echo
61+ echo "--- GraphQL viewer (login / type) ---"
62+ curl -s -H "Authorization: Bearer $APP_TOKEN" -H "Accept: application/vnd.github+json" \
63+ -d '{"query":"{ viewer { login __typename } }"}' https://api.github.com/graphql || true
64+ echo
65+ echo "--- REST /repos response (first 200 lines) ---"
66+ curl -s -H "Authorization: Bearer $APP_TOKEN" -H "Accept: application/vnd.github+json" https://api.github.com/repos/${{ github.repository }} | sed -n '1,200p' || true
67+
5568 - name : Setup Node.js
5669 uses : actions/setup-node@v4
5770 with :
You can’t perform that action at this time.
0 commit comments