Merge pull request #798 from hydra-billing/HOMS-519 #168
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] | |
| workflow_dispatch: | |
| jobs: | |
| run-homs-ci: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.HYDRA_BILLING_ROBOT_TOKEN }} | |
| steps: | |
| - name: run homs ci | |
| run: gh workflow run ci.yml -R hydra-billing/homs-ci -f branch=${{ github.head_ref || github.ref_name }} -f run_id=${{ github.run_id }} | |
| - name: wait for homs ci | |
| run: | | |
| while [ -z "${run_id}" ]; do | |
| run_id=$(gh run list -w ci.yml -R hydra-billing/homs-ci --json name,databaseId --jq '.[] | select(.name? | match(" ${{ github.run_id }}$")) | .databaseId') | |
| sleep 5 | |
| done | |
| gh run watch -R hydra-billing/homs-ci ${run_id} --exit-status -i 60 >/dev/null |