Skip to content

Commit 3140efd

Browse files
eregonclaude
andcommitted
Move check-new-releases concurrency group to the job
At workflow level, every discussion comment in the repository creates a run which enters the concurrency group before the job's `if` skips it, and that cancels a check which was pending behind a running one. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
1 parent ec06a5a commit 3140efd

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎.github/workflows/check-new-releases.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
workflow_dispatch:
66
discussion_comment:
77
types: [created]
8-
concurrency:
9-
group: check-new-releases
10-
cancel-in-progress: false
118

129
jobs:
1310
check_new_releases:
@@ -18,6 +15,10 @@ jobs:
1815
(github.event.discussion.number == 33 &&
1916
startsWith(github.event.comment.body, '/check-new-releases') &&
2017
contains(fromJSON('["eregon", "headius", "nirvdrum"]'), github.event.comment.user.login))
18+
# On the job so runs skipped by the `if` above do not enter the group and cancel a pending check
19+
concurrency:
20+
group: check-new-releases
21+
cancel-in-progress: false
2122
runs-on: ubuntu-latest
2223
steps:
2324
- uses: actions/checkout@v7

0 commit comments

Comments
 (0)