Skip to content

ci: add concurrency group to functions.yaml to cancel redundant runs #3531

@Ankitsinghsisodya

Description

@Ankitsinghsisodya

Problem

.github/workflows/functions.yaml has no concurrency configuration. When multiple commits are pushed to the same PR/branch in quick succession, multiple workflow runs execute simultaneously. This wastes CI minutes on stale runs that are no longer relevant.

Fix

Add a concurrency group to cancel in-progress runs when a new one starts:

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

This ensures only the latest run for a given branch/PR is active at a time.

Metadata

Metadata

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