mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-30 21:33:39 +00:00
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.
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Validate
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 0 * * *"
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
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
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
|
|
- name: Run hassfest validation
|
|
uses: home-assistant/actions/hassfest@8ca6e134c077479b26138bd33520707e8d94ef59 # master
|
|
|
|
hacs: # https://github.com/hacs/action
|
|
name: HACS validation
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Run HACS validation
|
|
uses: hacs/action@d556e736723344f83838d08488c983a15381059a # 22.5.0
|
|
with:
|
|
category: integration
|
|
# Remove this 'ignore' key when you have added brand images for your custom integration to https://github.com/home-assistant/brands
|
|
ignore: brands
|