Skip to content

Commit

Permalink
ci: add job to cancel previous runs (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
ersachin3112 committed Aug 15, 2022
1 parent 9a6e47c commit 9ebedf2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/cancel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Cancel
on: [push]
jobs:
cancel:
name: Cancel Previous Runs
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: styfle/cancel-workflow-action@0.10.0
with:
workflow_id: nodejs.yml
access_token: ${{ github.token }}

0 comments on commit 9ebedf2

Please sign in to comment.