Skip to content

Commit 3e13316

Browse files
Merge pull request #58 from CrackingShells/dev
ci: adding debug
2 parents cd57d80 + a776eb1 commit 3e13316

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/semantic-release.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
name: Semantic Release
2+
run-name: ${{ github.actor }} is automatically releasing
23

34
on:
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-
1510
jobs:
1611
test:
1712
runs-on: ubuntu-latest
@@ -52,6 +47,24 @@ jobs:
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:

0 commit comments

Comments
 (0)