Skip to content

Commit

Permalink
Merge with upstream (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhil authored Dec 9, 2024
2 parents 8b79a23 + 78f27b6 commit 8f56e55
Show file tree
Hide file tree
Showing 1,154 changed files with 10,060 additions and 8,334 deletions.
16 changes: 16 additions & 0 deletions .github/actions/cancel-on-failure/action.yml
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 }}
Loading

0 comments on commit 8f56e55

Please sign in to comment.