Add RBv2 distribute and remote-delete priority support (#1379) #78
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: Build Gate | |
| on: | |
| pull_request_target: | |
| types: [opened, synchronize, reopened] | |
| branches: [master] | |
| push: | |
| branches: [master] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| permissions: | |
| pull-requests: write | |
| contents: read | |
| jobs: | |
| gate: | |
| runs-on: ubuntu-latest | |
| environment: ${{ github.event_name == 'pull_request_target' && 'build-gate' || '' }} | |
| steps: | |
| - run: echo "Approved — releasing frogbot and test suites." | |
| frogbot: | |
| needs: gate | |
| uses: ./.github/workflows/frogbot-scan-pull-request.yml | |
| secrets: inherit | |
| tests: | |
| needs: gate | |
| uses: ./.github/workflows/tests.yml | |
| secrets: inherit | |
| # Single, stable required status check. Point branch protection at | |
| # "Build Gate / build-gate-success" instead of the matrix-expanded suite checks. | |
| build-gate-success: | |
| name: build-gate-success | |
| if: always() | |
| needs: | |
| - gate | |
| - frogbot | |
| - tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Verify no suite failed or was cancelled | |
| run: | | |
| if ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}; then | |
| echo "::error::One or more suites failed or were cancelled." | |
| exit 1 | |
| fi | |
| echo "All suites succeeded (skipped suites are allowed)." |