Skip to content

ci: add concurrency groups to build workflows#6908

Open
Yashagarwal9798 wants to merge 1 commit into
pipe-cd:masterfrom
Yashagarwal9798:ci/add-build-workflow-concurrency
Open

ci: add concurrency groups to build workflows#6908
Yashagarwal9798 wants to merge 1 commit into
pipe-cd:masterfrom
Yashagarwal9798:ci/add-build-workflow-concurrency

Conversation

@Yashagarwal9798

Copy link
Copy Markdown

What this PR does:

Adds workflow-level concurrency groups to these GitHub Actions workflows:

  • .github/workflows/build.yaml
  • .github/workflows/build_tool.yaml
  • .github/workflows/gen.yaml
  • .github/workflows/prerelease.yaml

This makes older runs for the same pull request stop when a newer commit starts running.

Why we need it:

When several commits are pushed to the same pull request quickly, GitHub Actions can keep running checks for older commits.

Those older checks are no longer useful because the pull request now points to a newer commit. Cancelling them saves CI minutes and runner capacity.

Which issue(s) this PR fixes:

Fixes #6905

Does this PR introduce a user-facing change?:

No.

  • How are users affected by this change:
    Users are not affected. This only changes GitHub Actions workflow behavior for pull requests.
  • Is this breaking change:
    No.
  • How to migrate (if breaking change):
    No migration is needed.

Signed-off-by: Yashagarwal9798 <yashagarwal9798@gmail.com>
@Yashagarwal9798

Copy link
Copy Markdown
Author

@Ayushmore1214 @khanhtc1202 can you please review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: add concurrency groups to build workflows

1 participant