Skip to content

Commit

Permalink
Add cancel jobs (#942)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M authored Jul 27, 2023
1 parent 4d74080 commit c4b773b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/cancel-jobs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Cancel jobs from merged/closed pull request

on:
pull_request_target:
types: [closed]
workflow_run:
workflows: ["*"]
types: [requested]

jobs:
merge_job:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: styfle/[email protected]
with:
ignore_sha: true
access_token: ${{ secrets.GITHUB_TOKEN }}
workflow_id: all

0 comments on commit c4b773b

Please sign in to comment.