github · GitHub Actions Docs
Actions Control the concurrency of workflows and jobs - GitHub Docs
Teaches how to use the concurrency key in GitHub Actions workflows to limit the number of concurrent workflow runs or jobs and cancel in-progress runs when new ones are triggered.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Actions Control the concurrency of workflows and jobs - GitHub Docs
Teaches how to use the concurrency key in GitHub Actions workflows to limit the number of concurrent workflow runs or jobs and cancel in-progress runs when new ones are triggered.
When To Use
Use when you need to prevent multiple workflow runs from executing simultaneously or when you want to automatically cancel outdated builds in favor of newer ones.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/actions-how-tos-write-workflows-control-the-concurrency-of-and-jobs-gith-workflow-guide.md | Markdown documentation providing YAML examples for implementing concurrency groups and managing workflow execution overlap in GitHub Actions. | Questions about markdown documentation providing YAML examples for implementing concurrency groups and managing workflow execution ov... |
examples/actions-how-tos-write-workflows-control-the-concurrency-of-and-jobs-gith.text | A YAML workflow configuration demonstrating how to use the concurrency key to group workflows and cancel in-progress runs. | Exact payloads, commands, or snippets shown in A YAML workflow configuration demonstrating how to use the concurrency key to group workflows and cancel in-progress... |
examples/actions-how-tos-write-workflows-control-the-concurrency-of-and-jobs-gith-2.text | A YAML workflow configuration demonstrating how to use the concurrency key with a group name and cancel-in-progress option to manage overlapping workflow runs. | Exact payloads, commands, or snippets shown in A YAML workflow configuration demonstrating how to use the concurrency key with a group name and cancel-in-progress o... |
examples/actions-how-tos-write-workflows-control-the-concurrency-of-and-jobs-gith-3.text | A YAML workflow configuration demonstrating how to use the concurrency key with a group name and cancel-in-progress option to manage overlapping runs. | Exact payloads, commands, or snippets shown in A YAML workflow configuration demonstrating how to use the concurrency key with a group name and cancel-in-progress o... |
examples/actions-how-tos-write-workflows-control-the-concurrency-of-and-jobs-gith-4.text | A YAML workflow configuration demonstrating how to use the concurrency key with a group and cancel-in-progress setting. | Exact payloads, commands, or snippets shown in A YAML workflow configuration demonstrating how to use the concurrency key with a group and cancel-in-progress setting. |
examples/actions-how-tos-write-workflows-control-the-concurrency-of-and-jobs-gith-5.text | A YAML workflow configuration demonstrating how to use the concurrency key with a group name and queue strategy to manage overlapping runs. | Exact payloads, commands, or snippets shown in A YAML workflow configuration demonstrating how to use the concurrency key with a group name and queue strategy to ma... |
examples/actions-how-tos-write-workflows-control-the-concurrency-of-and-jobs-gith-6.text | A YAML configuration snippet demonstrating how to use the concurrency key with a group and cancel-in-progress setting in a GitHub Actions workflow. | Exact payloads, commands, or snippets shown in A YAML configuration snippet demonstrating how to use the concurrency key with a group and cancel-in-progress setting... |
examples/actions-how-tos-write-workflows-control-the-concurrency-of-and-jobs-gith-7.text | A YAML configuration snippet demonstrating how to use the concurrency key with a group and cancel-in-progress setting to manage workflow execution. | Exact payloads, commands, or snippets shown in A YAML configuration snippet demonstrating how to use the concurrency key with a group and cancel-in-progress setting... |
examples/actions-how-tos-write-workflows-control-the-concurrency-of-and-jobs-gith-8.text | A YAML configuration snippet demonstrating how to use the concurrency key with a group and cancel-in-progress setting to manage workflow execution. | Exact payloads, commands, or snippets shown in A YAML configuration snippet demonstrating how to use the concurrency key with a group and cancel-in-progress setting... |
examples/actions-how-tos-write-workflows-control-the-concurrency-of-and-jobs-gith-9.text | A YAML configuration snippet demonstrating how to use the concurrency key with group and cancel-in-progress settings in a GitHub Actions workflow. | Exact payloads, commands, or snippets shown in A YAML configuration snippet demonstrating how to use the concurrency key with group and cancel-in-progress settings... |
What This Skill Covers
-
- GitHub Actions / - How-tos / - Write workflows / - Choose when workflows run / - Control workflow concurrency
- Main sections:
In this article,Using concurrency in different scenarios,Example: Using concurrency and the default behavior,Example: Concurrency groups,Example: Queueing multiple pending runs.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/control-workflow-concurrency
