From 1c8c90d6deb9bd097dc09cabe16cb734af511527 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Mon, 12 Feb 2024 12:49:06 +0100 Subject: [PATCH 1/3] Set fetch-depth to 0 --- .github/workflows/release_tag.yml | 2 ++ .github/workflows/validate_blueprint.yml | 4 +++- .github/workflows/validate_esphome.yml | 20 ++++++++++++++++++++ .github/workflows/validate_esphome_beta.yml | 20 ++++++++++++++++++++ .github/workflows/validate_markdown.yml | 4 ++++ .github/workflows/validate_yamllint.yml | 2 ++ 6 files changed, 51 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release_tag.yml b/.github/workflows/release_tag.yml index 39b907f..9f5b4dd 100644 --- a/.github/workflows/release_tag.yml +++ b/.github/workflows/release_tag.yml @@ -12,6 +12,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Set up Git run: | diff --git a/.github/workflows/validate_blueprint.yml b/.github/workflows/validate_blueprint.yml index 0df81c5..89b4601 100644 --- a/.github/workflows/validate_blueprint.yml +++ b/.github/workflows/validate_blueprint.yml @@ -17,6 +17,8 @@ jobs: runs-on: "ubuntu-latest" steps: - uses: actions/checkout@v4.1.0 - - name: Validate nspanel_blueprint.yaml + with: + fetch-depth: '0' # Fetch all history for all tags and branches + - name: Validate nspanel_blueprint.yaml run: yamllint -c "./.rules/yamllint.yml" nspanel_blueprint.yaml ... diff --git a/.github/workflows/validate_esphome.yml b/.github/workflows/validate_esphome.yml index 2a27ddd..3f3f796 100644 --- a/.github/workflows/validate_esphome.yml +++ b/.github/workflows/validate_esphome.yml @@ -26,6 +26,8 @@ jobs: runs-on: "ubuntu-latest" steps: - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Validate nspanel_esphome.yaml run: yamllint -c "./.rules/yamllint.yml" nspanel_esphome.yaml - name: Validate nspanel_esphome_core.yaml @@ -50,6 +52,8 @@ jobs: - code_scan steps: - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Build core uses: esphome/build-action@v1.8.0 with: @@ -62,6 +66,8 @@ jobs: - build_core steps: - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Build core+advanced uses: esphome/build-action@v1.8.0 with: @@ -74,6 +80,8 @@ jobs: - build_core steps: - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Build core+climate_heat uses: esphome/build-action@v1.8.0 with: @@ -86,6 +94,8 @@ jobs: - build_core steps: - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Build core+climate_cool uses: esphome/build-action@v1.8.0 with: @@ -98,6 +108,8 @@ jobs: - build_core steps: - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Build core+climate_dual uses: esphome/build-action@v1.8.0 with: @@ -111,6 +123,8 @@ jobs: - build_advanced steps: - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Build core+advanced+climate_heat uses: esphome/build-action@v1.8.0 with: @@ -124,6 +138,8 @@ jobs: - build_advanced steps: - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Build core+advanced+climate_cool+esp_idf uses: esphome/build-action@v1.8.0 with: @@ -137,6 +153,8 @@ jobs: - build_climate_dual steps: - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Build core+climate_dual+bt_proxy+esp_idf5 uses: esphome/build-action@v1.8.0 with: @@ -150,6 +168,8 @@ jobs: - build_climate_cool_advanced_esp_idf steps: - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Build core+advanced+climate_heat+customizations uses: esphome/build-action@v1.8.0 with: diff --git a/.github/workflows/validate_esphome_beta.yml b/.github/workflows/validate_esphome_beta.yml index 4151317..8e6bc4d 100644 --- a/.github/workflows/validate_esphome_beta.yml +++ b/.github/workflows/validate_esphome_beta.yml @@ -16,6 +16,8 @@ jobs: runs-on: "ubuntu-latest" steps: - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Validate nspanel_esphome.yaml run: yamllint -c "./.rules/yamllint.yml" nspanel_esphome.yaml - name: Validate nspanel_esphome_core.yaml @@ -40,6 +42,8 @@ jobs: - code_scan steps: - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Build core uses: esphome/build-action@v1.8.0 with: @@ -53,6 +57,8 @@ jobs: - build_core steps: - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Build core+advanced uses: esphome/build-action@v1.8.0 with: @@ -66,6 +72,8 @@ jobs: - build_core steps: - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Build core+climate_heat uses: esphome/build-action@v1.8.0 with: @@ -79,6 +87,8 @@ jobs: - build_core steps: - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Build core+climate_cool uses: esphome/build-action@v1.8.0 with: @@ -92,6 +102,8 @@ jobs: - build_core steps: - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Build core+climate_dual uses: esphome/build-action@v1.8.0 with: @@ -106,6 +118,8 @@ jobs: - build_advanced steps: - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Build core+advanced+climate_heat uses: esphome/build-action@v1.8.0 with: @@ -120,6 +134,8 @@ jobs: - build_advanced steps: - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Build core+advanced+climate_cool+esp_idf uses: esphome/build-action@v1.8.0 with: @@ -134,6 +150,8 @@ jobs: - build_climate_dual steps: - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Build core+climate_dual+bt_proxy+esp_idf5 uses: esphome/build-action@v1.8.0 with: @@ -148,6 +166,8 @@ jobs: - build_climate_cool_advanced_esp_idf steps: - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Build core+advanced+climate_heat+customizations uses: esphome/build-action@v1.8.0 with: diff --git a/.github/workflows/validate_markdown.yml b/.github/workflows/validate_markdown.yml index 4700e9c..ea45587 100644 --- a/.github/workflows/validate_markdown.yml +++ b/.github/workflows/validate_markdown.yml @@ -18,6 +18,8 @@ jobs: steps: - name: Check out code uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches # https://github.com/marketplace/actions/markdownlint-cli2-action - name: Identify changed files @@ -42,6 +44,8 @@ jobs: steps: - name: Check out code uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches # https://github.com/gaurav-nelson/github-action-markdown-link-check - name: Markdown links diff --git a/.github/workflows/validate_yamllint.yml b/.github/workflows/validate_yamllint.yml index 156a4bf..1874e5f 100644 --- a/.github/workflows/validate_yamllint.yml +++ b/.github/workflows/validate_yamllint.yml @@ -20,6 +20,8 @@ jobs: steps: - name: Check out code uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' # Fetch all history for all tags and branches - name: Identify changed files uses: tj-actions/changed-files@v41 From 156dbf834567fc12e74aa6e14d390ad91eda8e38 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Mon, 12 Feb 2024 12:50:37 +0100 Subject: [PATCH 2/3] Lint --- .github/workflows/validate_blueprint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate_blueprint.yml b/.github/workflows/validate_blueprint.yml index 89b4601..65c4938 100644 --- a/.github/workflows/validate_blueprint.yml +++ b/.github/workflows/validate_blueprint.yml @@ -19,6 +19,6 @@ jobs: - uses: actions/checkout@v4.1.0 with: fetch-depth: '0' # Fetch all history for all tags and branches - - name: Validate nspanel_blueprint.yaml + - name: Validate nspanel_blueprint.yaml run: yamllint -c "./.rules/yamllint.yml" nspanel_blueprint.yaml ... From a52a7cee558ea0312762f46e8ac46ae8067898ba Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Mon, 12 Feb 2024 12:52:15 +0100 Subject: [PATCH 3/3] Lint --- .github/workflows/release_tag.yml | 2 +- .github/workflows/validate_blueprint.yml | 2 +- .github/workflows/validate_esphome.yml | 20 ++++++++++---------- .github/workflows/validate_esphome_beta.yml | 20 ++++++++++---------- .github/workflows/validate_markdown.yml | 4 ++-- .github/workflows/validate_yamllint.yml | 2 +- 6 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/workflows/release_tag.yml b/.github/workflows/release_tag.yml index 9f5b4dd..a8c0e1a 100644 --- a/.github/workflows/release_tag.yml +++ b/.github/workflows/release_tag.yml @@ -13,7 +13,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Set up Git run: | diff --git a/.github/workflows/validate_blueprint.yml b/.github/workflows/validate_blueprint.yml index 65c4938..b1fed54 100644 --- a/.github/workflows/validate_blueprint.yml +++ b/.github/workflows/validate_blueprint.yml @@ -18,7 +18,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Validate nspanel_blueprint.yaml run: yamllint -c "./.rules/yamllint.yml" nspanel_blueprint.yaml ... diff --git a/.github/workflows/validate_esphome.yml b/.github/workflows/validate_esphome.yml index 3f3f796..18cf5cb 100644 --- a/.github/workflows/validate_esphome.yml +++ b/.github/workflows/validate_esphome.yml @@ -27,7 +27,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Validate nspanel_esphome.yaml run: yamllint -c "./.rules/yamllint.yml" nspanel_esphome.yaml - name: Validate nspanel_esphome_core.yaml @@ -53,7 +53,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Build core uses: esphome/build-action@v1.8.0 with: @@ -67,7 +67,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Build core+advanced uses: esphome/build-action@v1.8.0 with: @@ -81,7 +81,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Build core+climate_heat uses: esphome/build-action@v1.8.0 with: @@ -95,7 +95,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Build core+climate_cool uses: esphome/build-action@v1.8.0 with: @@ -109,7 +109,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Build core+climate_dual uses: esphome/build-action@v1.8.0 with: @@ -124,7 +124,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Build core+advanced+climate_heat uses: esphome/build-action@v1.8.0 with: @@ -139,7 +139,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Build core+advanced+climate_cool+esp_idf uses: esphome/build-action@v1.8.0 with: @@ -154,7 +154,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Build core+climate_dual+bt_proxy+esp_idf5 uses: esphome/build-action@v1.8.0 with: @@ -169,7 +169,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Build core+advanced+climate_heat+customizations uses: esphome/build-action@v1.8.0 with: diff --git a/.github/workflows/validate_esphome_beta.yml b/.github/workflows/validate_esphome_beta.yml index 8e6bc4d..a5f3238 100644 --- a/.github/workflows/validate_esphome_beta.yml +++ b/.github/workflows/validate_esphome_beta.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Validate nspanel_esphome.yaml run: yamllint -c "./.rules/yamllint.yml" nspanel_esphome.yaml - name: Validate nspanel_esphome_core.yaml @@ -43,7 +43,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Build core uses: esphome/build-action@v1.8.0 with: @@ -58,7 +58,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Build core+advanced uses: esphome/build-action@v1.8.0 with: @@ -73,7 +73,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Build core+climate_heat uses: esphome/build-action@v1.8.0 with: @@ -88,7 +88,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Build core+climate_cool uses: esphome/build-action@v1.8.0 with: @@ -103,7 +103,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Build core+climate_dual uses: esphome/build-action@v1.8.0 with: @@ -119,7 +119,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Build core+advanced+climate_heat uses: esphome/build-action@v1.8.0 with: @@ -135,7 +135,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Build core+advanced+climate_cool+esp_idf uses: esphome/build-action@v1.8.0 with: @@ -151,7 +151,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Build core+climate_dual+bt_proxy+esp_idf5 uses: esphome/build-action@v1.8.0 with: @@ -167,7 +167,7 @@ jobs: steps: - uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Build core+advanced+climate_heat+customizations uses: esphome/build-action@v1.8.0 with: diff --git a/.github/workflows/validate_markdown.yml b/.github/workflows/validate_markdown.yml index ea45587..b2eb52a 100644 --- a/.github/workflows/validate_markdown.yml +++ b/.github/workflows/validate_markdown.yml @@ -19,7 +19,7 @@ jobs: - name: Check out code uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' # https://github.com/marketplace/actions/markdownlint-cli2-action - name: Identify changed files @@ -45,7 +45,7 @@ jobs: - name: Check out code uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' # https://github.com/gaurav-nelson/github-action-markdown-link-check - name: Markdown links diff --git a/.github/workflows/validate_yamllint.yml b/.github/workflows/validate_yamllint.yml index 1874e5f..29f55bd 100644 --- a/.github/workflows/validate_yamllint.yml +++ b/.github/workflows/validate_yamllint.yml @@ -21,7 +21,7 @@ jobs: - name: Check out code uses: actions/checkout@v4.1.0 with: - fetch-depth: '0' # Fetch all history for all tags and branches + fetch-depth: '0' - name: Identify changed files uses: tj-actions/changed-files@v41