Skip to content

Commit 052a5bc

Browse files
authored
Fix slack merge reaction workflow (#32)
* clean up merge reaction * Remove invalid if condition from reusable workflow call * Add workflow access debug
1 parent 5f1716b commit 052a5bc

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Debug Docs-Automation Access
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
access-check:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
steps:
12+
- name: Check access to docs-automation workflow file
13+
env:
14+
TARGET_URL: https://api.github.com/repos/digitalocean/docs-automation/contents/.github/workflows/slack-merge-reaction.yml?ref=main
15+
run: |
16+
echo "Requesting: $TARGET_URL"
17+
STATUS=$(curl -s -o /tmp/resp.json -w "%{http_code}" \
18+
-H "Authorization: Bearer $GITHUB_TOKEN" \
19+
-H "Accept: application/vnd.github+json" \
20+
"$TARGET_URL")
21+
echo "HTTP status: $STATUS"
22+
echo "Response:"
23+
cat /tmp/resp.json

0 commit comments

Comments
 (0)