Skip to content

Commit

Permalink
fix: escape single quotes ' for curl (#2272)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gastón Fournier committed Oct 27, 2022
1 parent 5cef605 commit e1883ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yaml
Expand Up @@ -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}}'

0 comments on commit e1883ca

Please sign in to comment.