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"' }}'