Orchestrator (light) #13790
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: Orchestrator (light) | |
| run-name: Orchestrator (light) | |
| on: | |
| schedule: | |
| - cron: '5,20,35,50 * * * *' | |
| workflow_dispatch: | |
| concurrency: | |
| group: orchestrator-light | |
| cancel-in-progress: true | |
| jobs: | |
| orchestrator: | |
| name: Run orchestrator.yaml workflow | |
| uses: ./.github/workflows/orchestrator.yaml | |
| secrets: inherit | |
| with: | |
| provision_mode: 'regular' | |
| loop: 'yes' | |
| run_light: 'yes' | |
| run_heavy: 'no' | |
| restart: | |
| name: Run gh cli to run orchestrator-proxy with the same arguments, which will start orchestrator.yaml if not cancelled and looped | |
| if: ${{ !cancelled() }} | |
| runs-on: ["self-hosted", "runner_light"] | |
| needs: orchestrator | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| with: | |
| sparse-checkout: '.github' | |
| clean: true | |
| - name: disable sparse checkout (workaround for actions/checkout/issues/2249) | |
| if: ${{ always() }} | |
| run: git config core.sparseCheckout false | |
| continue-on-error: true | |
| - name: Set up gh cli | |
| uses: ./.github/actions/gh_cli | |
| - name: Run gh cli to start this workflow with the same arguments | |
| if: ${{ always() }} | |
| shell: bash --noprofile --norc -eo pipefail -x {0} | |
| run: | | |
| gh workflow run orchestrator-proxy.yaml -R "${GITHUB_REPO}" \ | |
| --field workflow_name="${WORKFLOW_NAME}" \ | |
| --field provision_mode="${PROVISION_MODE}" \ | |
| --field loop="${LOOP}" \ | |
| --field run_light="${RUN_LIGHT}" \ | |
| --field run_heavy="${RUN_HEAVY}" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | |
| GITHUB_REPO: ${{ github.repository }} | |
| PROVISION_MODE: 'regular' | |
| WORKFLOW_NAME: 'orchestrator-light.yaml' | |
| LOOP: 'yes' | |
| RUN_LIGHT: 'yes' | |
| RUN_HEAVY: 'no' |