Skip to content

Commit

Permalink
add cancel workflow to CI (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusrodri authored Sep 12, 2024
1 parent 6404ded commit 6642f76
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/cancel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Cancel
on: [push]
jobs:
cancel:
name: "Cancel Previous Build"
if: github.ref != 'refs/heads/master'
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: styfle/[email protected]
with:
workflow_id: ".github/workflows/build.yml"
all_but_latest: true
access_token: ${{ github.token }}

0 comments on commit 6642f76

Please sign in to comment.