Skip to content

Commit

Permalink
CI: canceling previous workflow runs (#3078)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvkruchinin authored Apr 8, 2021
1 parent 553535e commit fad8612
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/cancel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Cancelling Duplicates
on:
workflow_run:
workflows: ['CI']
types: ['requested']

jobs:
cancel-duplicate-workflow-runs:
name: "Cancel duplicate workflow runs"
runs-on: ubuntu-latest
steps:
- uses: potiuk/cancel-workflow-runs@master
name: "Cancel duplicate workflow runs"
with:
cancelMode: duplicates
token: ${{ secrets.GITHUB_TOKEN }}
sourceRunId: ${{ github.event.workflow_run.id }}

0 comments on commit fad8612

Please sign in to comment.