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)
permissions:
contents: read
pull-requests: read
on: # yamllint disable-line rule:truthy
workflow_dispatch:

View File

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