Skip to content

Commit

Permalink
add canceling currently running tests on new pushes to PR branches
Browse files Browse the repository at this point in the history
  • Loading branch information
rok-cesnovar committed Jan 4, 2021
1 parent 0385ff0 commit 7beb1b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
runs-on: windows-latest

steps:
- uses: n1hility/cancel-previous-runs@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop'"

- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
Expand Down

0 comments on commit 7beb1b4

Please sign in to comment.