From f1634bb5248db23001c6796f871a189f489b1fdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Mon, 31 Oct 2022 14:05:26 +0100 Subject: [PATCH] fix: adapt to new CI builder format (#2303) * fix: escape single quotes for curl * Use new format of CI builder --- .github/workflows/build.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0e338a5464..8188e97495 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -54,8 +54,9 @@ jobs: - name: Trigger CI build env: UNLEASH_CI_BUILDER_GITHUB_TOKEN: ${{ secrets.UNLEASH_CI_BUILDER_GITHUB_TOKEN }} - COMMITS: ${{ toJSON(github.event.commits) }} + COMMITS: ${{ toJSON(github.event.commits[*].id) }} + SLUG: ${{ github.event.repository.full_name }} 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":$COMMITS}}' + -d "{\"event_type\":\"trigger-unleash-cloud-build\",\"client_payload\":{\"source\":\"${SLUG}\",\"commits\":${COMMITS}}}"