Skip to content

Add Workflow Concurrency to Save CI Resources #638

@Shubh-Raj

Description

@Shubh-Raj

Feature Request

Add concurrency configuration to the GitHub Actions workflows to cancel redundant builds.

Use Case

When a developer pushes multiple commits to a PR in quick succession, multiple GitHub Action workflows are triggered and run in parallel. This wastes CI resources and can delay feedback for the latest commit.
We should automatically cancel any in-progress runs for the same branch/workflow when a new commit is pushed.

Possible Solution

Add the concurrency group implementation to the build.yml workflow:

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

Context

Optimizing CI usage to be faster and more cost-effective.

Detailed Description

Update .github/workflows/build.yml to include the concurrency block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions