What is the scope of a concurrency group name: repo, org, or workflow?
AdvancedConceptJobs, Steps, Matrix & Concurrency
Answer
Groups are scoped to the repository, across all workflows. Two different workflows using group: deploy-prod serialize against each other, which is exactly what you want for a shared environment and exactly what you do not want when two unrelated workflows accidentally pick a generic name like ci. When a reusable workflow defines concurrency using github.workflow, that resolves to the caller's workflow name, so different callers get different groups. Include the environment or a specific prefix in group names.
More on Jobs, Steps, Matrix & Concurrency
How does `needs` work, and what happens to a job whose dependency failed or was skipped?BeginnerWhat is the implicit `success()` in a job `if`, and why is `always()` usually the wrong fix?IntermediateWhat values can `needs.<job>.result` take?BeginnerHow does a matrix expand, and how are job names generated?BeginnerHow do `include` and `exclude` work in a matrix?IntermediateWhat do `fail-fast` and `max-parallel` do?Beginner