Skip to content

Commit 5ce2b3d

Browse files
chore(workflow): debug cf token length
1 parent 0adbc34 commit 5ce2b3d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ jobs:
2727
2828
- name: Purge Cloudflare cache
2929
run: |
30+
echo "Token length: ${#CF_TOKEN}"
3031
curl -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CF_ZONE_ID }}/purge_cache" \
31-
-H "Authorization: Bearer ${{ secrets.CF_API_TOKEN }}" \
32+
-H "Authorization: Bearer $CF_TOKEN" \
3233
-H "Content-Type: application/json" \
3334
--data '{"purge_everything":true}'
35+
env:
36+
CF_TOKEN: ${{ secrets.CF_API_TOKEN }}
3437

3538

0 commit comments

Comments
 (0)