From 256caab2ff0cb5efb3ecff48d979e0452035b0bc Mon Sep 17 00:00:00 2001 From: Julian Pawlowski Date: Sun, 9 Nov 2025 16:30:34 +0000 Subject: [PATCH] feat(workflows): add concurrency control to prevent duplicate runs Added concurrency groups with cancel-in-progress to validate.yml, lint.yml, and auto-tag.yml workflows. This ensures that when multiple commits are pushed quickly: - Only the latest validation/lint run continues - Older runs are automatically cancelled - Saves CI minutes and provides faster feedback Release workflow intentionally excluded (each tag is unique). Impact: More efficient CI usage, faster feedback on rapid commits. --- .github/workflows/auto-tag.yml | 4 ++++ .github/workflows/lint.yml | 4 ++++ .github/workflows/validate.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/auto-tag.yml b/.github/workflows/auto-tag.yml index e85ee85..9bdd32e 100644 --- a/.github/workflows/auto-tag.yml +++ b/.github/workflows/auto-tag.yml @@ -10,6 +10,10 @@ on: permissions: contents: write +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: true + jobs: check-and-tag: name: Check and create version tag diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 202da7d..3a249bc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,6 +10,10 @@ on: permissions: {} +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: ruff: name: "Ruff" diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index c45a142..e750df1 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -13,6 +13,10 @@ on: permissions: {} +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: hassfest: # https://developers.home-assistant.io/blog/2020/04/16/hassfest name: Hassfest validation