mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
feat: trigger unleash-ci-builder (#2192)
* feat: trigger unleash-ci-builder * Move job to build step
This commit is contained in:
parent
076a007b42
commit
b82d2b22d7
14
.github/workflows/build.yaml
vendored
14
.github/workflows/build.yaml
vendored
@ -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)}}}}'
|
||||
|
Loading…
Reference in New Issue
Block a user