https://github.com/python/cpython/commit/03a211290e86cd276c71e28097aa868984e28b51
commit: 03a211290e86cd276c71e28097aa868984e28b51
branch: 3.14
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: AA-Turner <9087854+aa-tur...@users.noreply.github.com>
date: 2025-05-22T04:15:06Z
summary:

[3.14] gh-134309: Add ``github.actor`` to the GitHub Actions concurrency key 
(GH-134310) (#134484)

gh-134309: Add ``github.actor`` to the GitHub Actions concurrency key 
(GH-134310)

When inexperienced users create a PR from their default branch, all of the 
concurrency keys
collide as there is no namespacing. This becomes an issue at events with many 
new contributors,
where workflow runs are cancelled on other pull requests.
Disambiguate by adding the username of the relevant 'actor' to the concurrency 
key.
(cherry picked from commit 979d81a17905e922d32fb1671f9ed394e0ffbda6)





Authored-by: Adam Turner <9087854+aa-tur...@users.noreply.github.com>

Co-authored-by: Kira <coldcapt...@gmail.com>
Co-authored-by: Adam Turner <9087854+aa-tur...@users.noreply.github.com>
Co-authored-by: Sviatoslav Sydorenko <sv...@redhat.com>
Co-authored-by: C.A.M. Gerlach <cam.gerl...@gerlach.cam>

files:
M .github/workflows/build.yml

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 3478af18f0e9cb..e26433786f74e4 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -15,7 +15,13 @@ permissions:
   contents: read
 
 concurrency:
-  group: ${{ github.workflow }}-${{ github.head_ref || github.run_id 
}}-reusable
+  # 
https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
+  # 'group' must be a key uniquely representing a PR or push event.
+  # github.workflow is the workflow name
+  # github.actor is the user invoking the workflow
+  # github.head_ref is the source branch of the PR or otherwise blank
+  # github.run_id is a unique number for the current run
+  group: ${{ github.workflow }}-${{ github.actor }}-${{ github.head_ref || 
github.run_id }}
   cancel-in-progress: true
 
 env:

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to