Skip to content

Commit 9b211d3

Browse files
committed
CI: Try a different mechanism for triggering the workflow.
1 parent 7830706 commit 9b211d3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build-brev-tutorial-docker-images.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ jobs:
109109
110110
- name: Trigger test workflow
111111
run: |
112-
gh workflow run test-brev-tutorial-docker-images.yml \
113-
--ref ${{ github.ref_name }} \
114-
-f tutorial=${{ steps.set-image.outputs.tutorial_name }}
115-
env:
116-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112+
curl -X POST \
113+
-H "Accept: application/vnd.github.v3+json" \
114+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
115+
https://api.github.com/repos/${{ github.repository }}/actions/workflows/test-brev-tutorial-docker-images.yml/dispatches \
116+
-d '{"ref":"${{ github.ref_name }}","inputs":{"tutorial":"${{ steps.set-image.outputs.tutorial_name }}"}}'
117117
118118
- name: Check disk space after build
119119
if: always()

0 commit comments

Comments
 (0)