Specify permissions and trigger's files types

This commit is contained in:
Edward Firmo
2024-12-27 03:12:29 +01:00
parent 088213137f
commit fee446c5e2
2 changed files with 20 additions and 20 deletions

View File

@@ -1,6 +1,10 @@
--- ---
name: Validate ESPHome (Latest) name: Validate ESPHome (Latest)
permissions:
contents: read
pull-requests: read
on: # yamllint disable-line rule:truthy on: # yamllint disable-line rule:truthy
workflow_dispatch: workflow_dispatch:

View File

@@ -1,33 +1,29 @@
--- ---
name: Validate ESPHome (Beta) name: Validate ESPHome (Beta)
permissions:
contents: read
pull-requests: read
on: # yamllint disable-line rule:truthy on: # yamllint disable-line rule:truthy
push: push:
paths: paths:
- "*.c" - "*.{yml,yaml,h,cpp,c,py}"
- "*.cpp" - ".github/workflows/*.{yml,yaml,h,cpp,c,py}"
- "*.h" - ".test/*.{yml,yaml,h,cpp,c,py}"
- "*.py" - "components/*.{yml,yaml,h,cpp,c,py}"
- "*.yaml" - "components/tx_ultimate_easy/*.{yml,yaml,h,cpp,c,py}"
- ".github/workflows/*.*" - "ESPHome/*.{yml,yaml,h,cpp,c,py}"
- ".test/*.*"
- "components/*.*"
- "components/tx_ultimate_easy/*.*"
- "ESPHome/*.*"
branches: branches:
- main - main
pull_request: pull_request:
paths: paths:
- "*.c" - "*.{yml,yaml,h,cpp,c,py}"
- "*.cpp" - ".github/workflows/*.{yml,yaml,h,cpp,c,py}"
- "*.h" - ".test/*.{yml,yaml,h,cpp,c,py}"
- "*.py" - "components/*.{yml,yaml,h,cpp,c,py}"
- "*.yaml" - "components/tx_ultimate_easy/*.{yml,yaml,h,cpp,c,py}"
- ".github/workflows/*.*" - "ESPHome/*.{yml,yaml,h,cpp,c,py}"
- ".test/*.*"
- "components/*.*"
- "components/tx_ultimate_easy/*.*"
- "ESPHome/*.*"
workflow_dispatch: workflow_dispatch:
concurrency: concurrency: