Test camunda-ext-ci #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| run-camunda-ext-ci: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.HYDRA_BILLING_ROBOT_TOKEN }} | |
| steps: | |
| - name: run camunda-ext ci | |
| run: gh workflow run ci.yml -R hydra-billing/camunda-ext-ci -f branch=${{ github.head_ref || github.ref_name }} -f run_id=${{ github.run_id }} | |
| - name: wait for camunda-ext ci | |
| run: | | |
| while [ -z "${run_id}" ]; do | |
| run_id=$(gh run list -w ci.yml -R hydra-billing/camunda-ext-ci --json name,databaseId --jq '.[] | select(.name? | match(" ${{ github.run_id }}$")) | .databaseId') | |
| sleep 5 | |
| done | |
| gh run watch -R hydra-billing/camunda-ext-ci ${run_id} --exit-status -i 60 >/dev/null |