Skip to content

Commit ea99fbe

Browse files
jensensclaude
andcommitted
fix(ci): use gh workflow run instead of raw curl for dispatch
The curl-based dispatch kept failing with exit 22 even after granting actions:write. -sf suppressed the response body, so the real error was invisible. Switch to `gh workflow run`, which authenticates from GH_TOKEN automatically and surfaces clear errors if it still fails. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9821468 commit ea99fbe

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/check-thumbor.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,8 @@ jobs:
4646
4747
- name: Trigger rebuild if new version
4848
if: steps.check.outputs.exists == 'no'
49+
env:
50+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4951
run: |
5052
echo "New Thumbor version ${{ steps.pypi.outputs.version }} detected — triggering rebuild"
51-
curl -sf -X POST \
52-
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
53-
-H "Accept: application/vnd.github.v3+json" \
54-
"https://api.github.com/repos/${{ github.repository }}/actions/workflows/docker.yaml/dispatches" \
55-
-d '{"ref":"main"}'
53+
gh workflow run docker.yaml --repo "${{ github.repository }}" --ref main

0 commit comments

Comments
 (0)