Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ddb5e0f783 | ||
|
|
ab078f597a | ||
|
|
5eb42082db | ||
|
|
b1a978b3f3 | ||
|
|
4ec44e611f | ||
|
|
4d7895a2e9 | ||
|
|
be76ebd603 | ||
|
|
49a0f088e7 | ||
|
|
ace945a4ea | ||
|
|
e944cd2c21 |
45
.github/workflows/validate_markdown.yml
vendored
45
.github/workflows/validate_markdown.yml
vendored
@@ -17,23 +17,28 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: '0'
|
fetch-depth: 0 # Ensures full commit history for diff
|
||||||
|
|
||||||
# https://github.com/marketplace/actions/markdownlint-cli2-action
|
|
||||||
- name: Identify changed files
|
- name: Identify changed files
|
||||||
uses: tj-actions/changed-files@v41
|
|
||||||
id: changed-files
|
id: changed-files
|
||||||
with:
|
run: |
|
||||||
files: '**/*.md'
|
BASE=${{ github.event.before }}
|
||||||
separator: ","
|
HEAD=${{ github.sha }}
|
||||||
# https://github.com/marketplace/actions/markdownlint-cli2-action
|
FILES=$(git diff --name-only $BASE $HEAD -- '**/*.md' | tr '\n' ',')
|
||||||
|
echo "changed_files=$FILES" >> $GITHUB_ENV
|
||||||
|
if [[ -n "$FILES" ]]; then
|
||||||
|
echo "any_changed=true" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "any_changed=false" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Markdown Lint
|
- name: Markdown Lint
|
||||||
uses: DavidAnson/markdownlint-cli2-action@v14
|
uses: DavidAnson/markdownlint-cli2-action@v14
|
||||||
if: steps.changed-files.outputs.any_changed == 'true'
|
if: env.any_changed == 'true'
|
||||||
with:
|
with:
|
||||||
globs: ${{ steps.changed-files.outputs.all_changed_files }}
|
globs: ${{ env.changed_files }}
|
||||||
separator: ","
|
separator: ","
|
||||||
config: '.rules/.markdownlint.jsonc'
|
config: '.rules/.markdownlint.jsonc'
|
||||||
fix: true
|
fix: true
|
||||||
@@ -43,15 +48,27 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: '0'
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Identify changed files
|
||||||
|
id: changed-files
|
||||||
|
run: |
|
||||||
|
BASE=${{ github.event.before }}
|
||||||
|
HEAD=${{ github.sha }}
|
||||||
|
FILES=$(git diff --name-only $BASE $HEAD -- '**/*.md' | tr '\n' ',')
|
||||||
|
echo "changed_files=$FILES" >> $GITHUB_ENV
|
||||||
|
if [[ -n "$FILES" ]]; then
|
||||||
|
echo "any_changed=true" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "any_changed=false" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
# https://github.com/gaurav-nelson/github-action-markdown-link-check
|
|
||||||
- name: Markdown links
|
- name: Markdown links
|
||||||
uses: gaurav-nelson/github-action-markdown-link-check@v1
|
uses: gaurav-nelson/github-action-markdown-link-check@v1
|
||||||
|
if: env.any_changed == 'true'
|
||||||
with:
|
with:
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
check-modified-files-only: yes
|
check-modified-files-only: yes
|
||||||
config-file: '.rules/mlc_config.json'
|
config-file: '.rules/mlc_config.json'
|
||||||
base-branch: 'main'
|
base-branch: 'main'
|
||||||
|
|||||||
25
.github/workflows/validate_yamllint.yml
vendored
25
.github/workflows/validate_yamllint.yml
vendored
@@ -19,24 +19,29 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: '0'
|
fetch-depth: 0 # Ensures full commit history for diff
|
||||||
|
|
||||||
- name: Identify changed files
|
- name: Identify changed files
|
||||||
uses: tj-actions/changed-files@v41
|
|
||||||
id: changed-files
|
id: changed-files
|
||||||
with:
|
run: |
|
||||||
files: '**/*.y*ml'
|
BASE=${{ github.event.before }}
|
||||||
separator: ","
|
HEAD=${{ github.sha }}
|
||||||
|
FILES=$(git diff --name-only $BASE $HEAD -- '**/*.yml' '**/*.yaml' | tr '\n' ',')
|
||||||
|
echo "changed_files=$FILES" >> $GITHUB_ENV
|
||||||
|
if [[ -n "$FILES" ]]; then
|
||||||
|
echo "any_changed=true" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "any_changed=false" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Validate YAML
|
- name: Validate YAML
|
||||||
if: steps.changed-files.outputs.any_changed == 'true'
|
if: env.any_changed == 'true'
|
||||||
run: |
|
run: |
|
||||||
IFS=',' read -ra FILES <<< "${{ steps.changed-files.outputs.all_changed_files }}"
|
IFS=',' read -ra FILES <<< "${{ env.changed_files }}"
|
||||||
for file in "${FILES[@]}"; do
|
for file in "${FILES[@]}"; do
|
||||||
if [[ "$file" =~ ^*\.yaml$ ]] || \
|
if [[ "$file" =~ ^.*\.yaml$ ]] || [[ "$file" =~ ^ESPHome/.*\.yaml$ ]]; then
|
||||||
[[ "$file" =~ ^ESPHome/*\.yaml$ ]]; then
|
|
||||||
echo "Skipping $file"
|
echo "Skipping $file"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ light:
|
|||||||
- id: !extend light_full
|
- id: !extend light_full
|
||||||
platform: esp32_rmt_led_strip
|
platform: esp32_rmt_led_strip
|
||||||
rgb_order: GRB
|
rgb_order: GRB
|
||||||
rmt_channel: 1
|
|
||||||
chipset: ws2812
|
chipset: ws2812
|
||||||
max_refresh_rate: 33ms
|
max_refresh_rate: 33ms
|
||||||
use_psram: false
|
use_psram: false
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ light:
|
|||||||
- id: !extend light_full
|
- id: !extend light_full
|
||||||
platform: esp32_rmt_led_strip
|
platform: esp32_rmt_led_strip
|
||||||
rgb_order: GRB
|
rgb_order: GRB
|
||||||
rmt_channel: 1
|
# rmt_channel: 1 # Not supported with IDF 5
|
||||||
chipset: ws2812
|
chipset: ws2812
|
||||||
max_refresh_rate: 33ms
|
max_refresh_rate: 33ms
|
||||||
use_psram: false
|
use_psram: false
|
||||||
|
|||||||
@@ -109,8 +109,6 @@ ota:
|
|||||||
platform: esphome
|
platform: esphome
|
||||||
|
|
||||||
psram:
|
psram:
|
||||||
mode: octal
|
|
||||||
speed: 80MHz
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- id: api_send_ha_event_boot
|
- id: api_send_ha_event_boot
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
2025.1.4
|
2025.5.1
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
version: 2025.1.4
|
version: 2025.5.1
|
||||||
|
|||||||
Reference in New Issue
Block a user