ci: Adding minimal required job set and validation preventing PRs from merging when tests are running #12
Workflow file for this run
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
| # GitHub Actions workflow to monitor Yamato CI job state on pull requests | |
| # We are using https://cli.github.com/manual/gh_pr_checks | |
| # The aim is to ensure that conditionally triggered Yamato jobs are completed successfully before allowing merges | |
| name: Yamato PR Supervisor | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| branches: | |
| - develop | |
| - develop-2.0.0 | |
| - release/* | |
| jobs: | |
| yamato-supervisor: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Wait and Verify Yamato Job Status | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| run: | | |
| sleep 30 | |
| gh pr checks ${{ github.event.pull_request.number }} --watch --fail-fast --interval 60 |