1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

fix: adapt to new CI builder format (#2303)

* fix: escape single quotes for curl

* Use new format of CI builder
This commit is contained in:
Gastón Fournier 2022-10-31 14:05:26 +01:00 committed by GitHub
parent f39d1021d0
commit f1634bb524
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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