diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 7634fc5..263933e 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -1,9 +1,28 @@ name: "Checks" on: pull_request: - types: [opened, synchronize, reopened, unlabeled] + types: + - opened + - synchronize + - reopened + - unlabeled branches: - master + paths: + - appdaemon + - blacklist + - critical + - integration + - netdaemon + - plugin + - python_script + - removed + - theme + +concurrency: + group: checks-${{ github.ref }} + cancel-in-progress: true + jobs: preflight: runs-on: ubuntu-latest diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 17a4964..eb0d3ad 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,5 +1,35 @@ name: Lint -on: [push, pull_request] +on: + pull_request: + branches: + - master + paths: + - appdaemon + - blacklist + - critical + - integration + - netdaemon + - plugin + - python_script + - removed + - theme + push: + branches: + - master + paths: + - appdaemon + - blacklist + - critical + - integration + - netdaemon + - plugin + - python_script + - removed + - theme + +concurrency: + group: lint-${{ github.ref }} + cancel-in-progress: true jobs: jq: