1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00

feat: trigger unleash-ci-builder (#2192)

* feat: trigger unleash-ci-builder

* Move job to build step
This commit is contained in:
Gastón Fournier 2022-10-14 16:48:03 +02:00 committed by GitHub
parent 076a007b42
commit b82d2b22d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,3 +44,17 @@ jobs:
CI: true
TEST_DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
trigger-ci-build:
runs-on: ubuntu-latest
needs: [build]
if: github.event.commits && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
- name: Trigger CI build
env:
UNLEASH_CI_BUILDER_GITHUB_TOKEN: ${{ secrets.UNLEASH_CI_BUILDER_GITHUB_TOKEN }}
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)}}}}'