From e1883caf0cfa2264b30bd65803294900972624a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Thu, 27 Oct 2022 14:35:46 +0200 Subject: [PATCH] fix: escape single quotes ' for curl (#2272) --- .github/workflows/build.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 62a8cbdc39..0e338a5464 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -54,7 +54,8 @@ jobs: - name: Trigger CI build env: UNLEASH_CI_BUILDER_GITHUB_TOKEN: ${{ secrets.UNLEASH_CI_BUILDER_GITHUB_TOKEN }} + COMMITS: ${{ toJSON(github.event.commits) }} run: | curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${UNLEASH_CI_BUILDER_GITHUB_TOKEN}" \ https://api.github.com/repos/bricks-software/unleash-ci-builder/dispatches \ - -d '{"event_type":"trigger-unleash-cloud-build","client_payload":{"commits":${{toJSON(github.event.commits)}}}}' + -d '{"event_type":"trigger-unleash-cloud-build","client_payload":{"commits":$COMMITS}}'