Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/actions-how-tos-write-workflows-control-the-concurrency-of-and-jobs-gith-workflow-guide.mdMarkdown 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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