Skip to content

ci: Adding minimal required job set and validation preventing PRs from merging when tests are running #11

ci: Adding minimal required job set and validation preventing PRs from merging when tests are running

ci: Adding minimal required job set and validation preventing PRs from merging when tests are running #11

Workflow file for this run

# 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 30