Skip to content

Commit

Permalink
fix: adapt to new CI builder format (#2303)
Browse files Browse the repository at this point in the history
* fix: escape single quotes for curl

* Use new format of CI builder
  • Loading branch information
Gastón Fournier committed Oct 31, 2022
1 parent f39d102 commit f1634bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yaml
Expand Up @@ -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}}}"

0 comments on commit f1634bb

Please sign in to comment.