Skip to content

Commit 5300a6d

Browse files
committed
Debugging.
1 parent 218408e commit 5300a6d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/actions/debug/action.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,22 @@ jobs:
88
steps:
99
- name: Debug GitHub Actions Environment
1010
run: |
11-
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
12-
NPM_TOKEN=${{ secrets.NPM_TOKEN }}
1311
echo "### 🔍 Checking GitHub Secrets & Environment Variables ###"
1412
1513
# Check if GITHUB_TOKEN is set
16-
if [[ -z "$GITHUB_TOKEN" ]]; then
14+
if [[ -z "${{ secrets.GITHUB_TOKEN }}" ]]; then
1715
echo "❌ GITHUB_TOKEN is NOT set. This may be due to missing permissions or a misconfigured repository secret.";
1816
else
1917
echo "✅ GITHUB_TOKEN is set.";
2018
fi
2119
2220
# Check if NPM_TOKEN is set
23-
if [[ -z "$NPM_TOKEN" ]]; then
21+
if [[ -z "${{ secrets.NPM_TOKEN }}" ]]; then
2422
echo "❌ NPM_TOKEN is NOT set. Ensure it exists in repository secrets under Settings → Secrets.";
2523
else
2624
echo "✅ NPM_TOKEN is set.";
2725
fi
26+
echo "### 🔍 Checking GitHub Secrets & Environment Variables ###"
2827
2928
# Check current GitHub Actions permissions
3029
echo "🔹 Workflow permissions setting:"

0 commit comments

Comments
 (0)