Interview Prep/GitHub Actions/Jobs, Steps, Matrix & Concurrency

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.

All GitHub Actions questions Roadmap: GitHub Actions

More on Jobs, Steps, Matrix & Concurrency