Repository navigation
Release v1.2.4 #16
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
| name: Stop on failure | |
| # A pull request's checks stop at the first failure rather than running to the end. A failing job in | |
| # CI or Desktop marks its run (.github/actions/stop-on-failure, its last step), and this cancels that | |
| # run as soon as the mark is there; a failure in CI cancels the pull request's Desktop run on the | |
| # same commit too. `verify` still runs on a cancelled CI run, since it runs always(), and reports the | |
| # failure, so the required check is red, never skipped. Re-run failed jobs re-runs the cancelled | |
| # ones with them. Why a watcher, and what it spends of the token's requests: scripts/ci-stop.ts. | |
| # | |
| # Pull requests only. A merge group, a push to main and the release's own call of CI run | |
| # everything, as before: nothing here watches them, and the mark is only left on a pull request. A pull request from a fork is not watched either: its token is read-only, so it could not | |
| # cancel, and its checks run to the end as before. | |
| on: | |
| pull_request: | |
| permissions: {} | |
| # The newest push wins, as in CI: its watch replaces the one of the commit before it. | |
| concurrency: | |
| group: ci-stop-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| watch: | |
| name: stop on failure | |
| if: github.event.pull_request.head.repo.full_name == github.repository | |
| # The larger runners, as CI's jobs from this repository: a job waiting on the shared standard | |
| # runners counts as the team waiting, which pauses contributors' runs (scripts/contributor-ci.ts). | |
| runs-on: openbot-ubuntu-16core | |
| # As long as the longest CI run, which is the WebKit job's 30 minutes after the rest. | |
| timeout-minutes: 90 | |
| permissions: | |
| # To read the runs and their marks, and to cancel them. | |
| actions: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| sparse-checkout: scripts/ci-stop.ts | |
| sparse-checkout-cone-mode: false | |
| - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 | |
| with: | |
| bun-version: 1.4.3 | |
| no-cache: true | |
| - name: Watch the pull request's checks | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| HEAD_SHA: ${{ github.event.pull_request.head.sha }} | |
| # The primary workflow first: a failure there stops the others too. | |
| WORKFLOWS: .github/workflows/ci.yml,.github/workflows/desktop.yml | |
| run: bun scripts/ci-stop.ts |