Skip to content

Commit

Permalink
ci: add job to cancel previous runs (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
ersachin3112 authored Aug 15, 2022
1 parent 0b1aa76 commit 541ad25
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 541ad25

Please sign in to comment.