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.
This commit is contained in:
Julian Pawlowski 2025-11-09 16:30:34 +00:00
parent 605e05ea95
commit 256caab2ff
3 changed files with 12 additions and 0 deletions

View file

@ -10,6 +10,10 @@ on:
permissions: permissions:
contents: write contents: write
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs: jobs:
check-and-tag: check-and-tag:
name: Check and create version tag name: Check and create version tag

View file

@ -10,6 +10,10 @@ on:
permissions: {} permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
ruff: ruff:
name: "Ruff" name: "Ruff"

View file

@ -13,6 +13,10 @@ on:
permissions: {} permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
hassfest: # https://developers.home-assistant.io/blog/2020/04/16/hassfest hassfest: # https://developers.home-assistant.io/blog/2020/04/16/hassfest
name: Hassfest validation name: Hassfest validation