diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 03a678eb078..722b2baec8c 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -71,11 +71,12 @@ jobs: run: | community_tag=$( echo ${{ github.ref }} | cut -d'/' -f3 ) hpcc_version=$( echo $community_tag | sed 's/community_//' | sed 's/-[0-9]$//' ) + data="{\"ref\":\"main\", \"inputs\": { \"hpccVersion\":\"$hpcc_version\",\"hpccSrcBranch\":\"$community_tag\" }}" curl -L \ -X POST \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer ${{ secrets.GAHT_TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/xwang2713/github-action-hpcc-terraform/actions/workflows/$WF_YAML_FILE/dispatches \ - -d '{"ref":"main", "inputs": { "hpccVersion":"$hpcc_version", "hpccSrcBranch":"$community_tag" }}' + -d "${data}"