1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: escape single quotes ' for curl (#2272)

This commit is contained in:
Gastón Fournier 2022-10-27 14:35:46 +02:00 committed by GitHub
parent 5cef605272
commit e1883caf0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,8 @@ jobs:
- name: Trigger CI build - name: Trigger CI build
env: env:
UNLEASH_CI_BUILDER_GITHUB_TOKEN: ${{ secrets.UNLEASH_CI_BUILDER_GITHUB_TOKEN }} UNLEASH_CI_BUILDER_GITHUB_TOKEN: ${{ secrets.UNLEASH_CI_BUILDER_GITHUB_TOKEN }}
COMMITS: ${{ toJSON(github.event.commits) }}
run: | run: |
curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${UNLEASH_CI_BUILDER_GITHUB_TOKEN}" \ 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 \ 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}}'