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:
parent
5cef605272
commit
e1883caf0c
3
.github/workflows/build.yaml
vendored
3
.github/workflows/build.yaml
vendored
@ -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}}'
|
||||||
|
Loading…
Reference in New Issue
Block a user