Skip to content

Commit 05d5c04

Browse files
Fix trigger-publish.yml to quote the commit hash (#592)
1 parent df70911 commit 05d5c04

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/trigger-publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: 'Trigger Docker image build'
22

33
on:
4+
workflow_dispatch:
45
release:
56
types: [published]
67

@@ -34,5 +35,6 @@ jobs:
3435
WORKFLOW_ID: update-submodules.yml
3536
REPO: ${{ toJSON('cli') }}
3637
BRANCH: ${{ toJSON(steps.get_branch.outputs.branch) }}
38+
COMMIT: ${{ toJSON(github.sha) }}
3739
run: |
38-
curl -fL -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token $PAT" "https://api.github.com/repos/$PARENT_REPO/actions/workflows/$WORKFLOW_ID/dispatches" -d '{"ref":'"$PARENT_BRANCH"', "inputs": { "repo":'"$REPO"', "branch":'"$BRANCH"', "commit": '"$GITHUB_SHA"' }}'
40+
curl -fL -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token $PAT" "https://api.github.com/repos/$PARENT_REPO/actions/workflows/$WORKFLOW_ID/dispatches" -d '{"ref":'"$PARENT_BRANCH"', "inputs": { "repo":'"$REPO"', "branch":'"$BRANCH"', "commit": '"$COMMIT"' }}'

0 commit comments

Comments
 (0)