forked from bytecodealliance/wasmtime
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,154 changed files
with
10,060 additions
and
8,334 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: 'Cancel workflow on failure' | ||
description: 'If the current job is failing, cancel the whole workflow' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
# Don't cancel on PRs which don't have permissions to do so and also don't | ||
# cancel on Windows because that often results in a race between marking the | ||
# job as failed or cancelled, often marking it as canceled. This doesn't | ||
# seem to be an issue for other platforms though. If a failure happens on | ||
# Windows let the failure naturally propagate. | ||
- run: gh run cancel ${{ github.run_id }} | ||
shell: bash | ||
if: github.event_name != 'pull_request' && runner.os != 'Windows' | ||
env: | ||
GH_TOKEN: ${{ github.token }} |
Oops, something went wrong.