Skip to content

Commit

Permalink
Avoid canceling jobs after merge (#34)
Browse files Browse the repository at this point in the history
Better concurrency
  • Loading branch information
ssbarnea authored Aug 8, 2024
1 parent 8ce04c6 commit ba3affd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
name: tox

on:
create: # is used for publishing to PyPI and TestPyPI
tags: # any tag regardless of its name, no branches
- "**"
push: # only publishes pushes to the main branch to TestPyPI
branches: # any integration branch but not tag
- "main"
Expand All @@ -13,7 +10,9 @@ on:
- "main"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
# Avoids canceling push to main of the same commit (github.sha) but will
# cancel running builds when you update the source branch of a PR.
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

env:
Expand Down

0 comments on commit ba3affd

Please sign in to comment.