Specify permissions and trigger's files types
This commit is contained in:
4
.github/workflows/validate_esphome.yml
vendored
4
.github/workflows/validate_esphome.yml
vendored
@@ -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:
|
||||||
|
|
||||||
|
|||||||
36
.github/workflows/validate_esphome_beta.yml
vendored
36
.github/workflows/validate_esphome_beta.yml
vendored
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user