Skip to content

Commit

Permalink
Fix trigger-publish.yml to quote the commit hash (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
antlai-temporal authored Jun 10, 2024
1 parent df70911 commit 05d5c04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/trigger-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: 'Trigger Docker image build'

on:
workflow_dispatch:
release:
types: [published]

Expand Down Expand Up @@ -34,5 +35,6 @@ jobs:
WORKFLOW_ID: update-submodules.yml
REPO: ${{ toJSON('cli') }}
BRANCH: ${{ toJSON(steps.get_branch.outputs.branch) }}
COMMIT: ${{ toJSON(github.sha) }}
run: |
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"' }}'
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 comments on commit 05d5c04

Please sign in to comment.