Skip to content

Commit

Permalink
PR open and close cancel each other (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Jan 12, 2023
1 parent a06cd40 commit 68d9b7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pr-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- closed

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
# PR open and close use the same group, allowing only one at a time
group: pr-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
# PR open and close use the same group, allowing only one at a time
group: pr-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down

0 comments on commit 68d9b7f

Please sign in to comment.