mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-29 21:03:40 +00:00
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:
parent
605e05ea95
commit
256caab2ff
3 changed files with 12 additions and 0 deletions
4
.github/workflows/auto-tag.yml
vendored
4
.github/workflows/auto-tag.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
|
|
@ -10,6 +10,10 @@ on:
|
|||
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
ruff:
|
||||
name: "Ruff"
|
||||
|
|
|
|||
4
.github/workflows/validate.yml
vendored
4
.github/workflows/validate.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue