From 05d5c040e5a443d5d50476c86654105ef54f070d Mon Sep 17 00:00:00 2001 From: Antonio Lain <135073478+antlai-temporal@users.noreply.github.com> Date: Mon, 10 Jun 2024 18:49:19 -0500 Subject: [PATCH] Fix trigger-publish.yml to quote the commit hash (#592) --- .github/workflows/trigger-publish.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/trigger-publish.yml b/.github/workflows/trigger-publish.yml index b8c87a98..dc7c64c4 100644 --- a/.github/workflows/trigger-publish.yml +++ b/.github/workflows/trigger-publish.yml @@ -1,6 +1,7 @@ name: 'Trigger Docker image build' on: + workflow_dispatch: release: types: [published] @@ -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"' }}'