ci_cancel_desktop_on_ubuntu_failure #1909
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: ci_cancel_desktop_on_ubuntu_failure | |
| on: | |
| workflow_run: | |
| workflows: | |
| - ci_aarch64_build_ubuntu | |
| - ci_benchmarks_ubuntu | |
| - ci_cargo_deny_ubuntu | |
| - ci_integration_tests_ubuntu | |
| - ci_linters_ubuntu | |
| - ci_quick_checks_ubuntu | |
| - ci_unit_tests_ubuntu | |
| types: [completed] | |
| workflow_dispatch: | |
| inputs: | |
| head_sha: | |
| description: Head SHA whose desktop CI runs should be cancelled | |
| required: true | |
| event_name: | |
| description: Optional event name filter, for example pull_request or push | |
| required: false | |
| permissions: | |
| actions: write | |
| contents: read | |
| jobs: | |
| cancel_desktop_ci: | |
| name: Cancel desktop CI | |
| if: >- | |
| ${{ | |
| github.event_name == 'workflow_dispatch' || | |
| github.event.workflow_run.conclusion == 'failure' || | |
| github.event.workflow_run.conclusion == 'cancelled' || | |
| github.event.workflow_run.conclusion == 'timed_out' | |
| }} | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Cancel running macOS/Windows CI for the same commit | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| FAILED_WORKFLOW_NAME: ${{ github.event.workflow_run.name }} | |
| FAILED_RUN_ID: ${{ github.event.workflow_run.id }} | |
| FAILED_HEAD_SHA: ${{ github.event.workflow_run.head_sha || github.event.inputs.head_sha }} | |
| FAILED_EVENT_NAME: ${{ github.event.workflow_run.event || github.event.inputs.event_name }} | |
| run: node devtools/ci/cancel-desktop-workflows.js |