From 76d7982512ef00aef9991f6be4a24aa9afa57fa0 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Mon, 25 Aug 2025 08:55:57 -0400 Subject: [PATCH] Tweaking checkout and HA config check steps. --- .gitea/workflows/home-assistant-deploy.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/home-assistant-deploy.yml b/.gitea/workflows/home-assistant-deploy.yml index 65a0670..290aa1c 100644 --- a/.gitea/workflows/home-assistant-deploy.yml +++ b/.gitea/workflows/home-assistant-deploy.yml @@ -65,8 +65,12 @@ jobs: needs: [check-and-create-pr] runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 + - name: Checkout only configuration.yaml + uses: actions/checkout@v5 + with: + fetch-depth: 0 + sparse-checkout: ansible/configs/homeassistant/*.yaml + sparse-checkout-cone-mode: false - name: Gotify Notification uses: eikendev/gotify-action@master with: @@ -75,13 +79,7 @@ jobs: notification_title: 'GITEA: Home Assistant Config Check' notification_message: 'Beginning HA config check...' - name: Run Home Assistant Configuration Check - run: | - docker run --rm --entrypoint "" -v ./ansible/configs/homeassistant:/github/workspace/ --workdir /github/workspace "ghcr.io/home-assistant/home-assistant:stable" pwd - docker run --rm --entrypoint "" -v ./ansible/configs/homeassistant:/github/workspace/ --workdir /github/workspace "ghcr.io/home-assistant/home-assistant:stable" ls -al /github/workspace - docker run --rm --entrypoint "" -v ./ansible/configs/homeassistant:/github/workspace/ --workdir /github/workspace "ghcr.io/home-assistant/home-assistant:stable" python -m homeassistant --config "/github/workspace/configuration.yaml" --script check_config - # uses: frenck/action-home-assistant@v1.4.1 - # with: - # path: "ansible/configs/homeassistant" + uses: frenck/action-home-assistant@v1.4.1 - name: Gotify Notification uses: eikendev/gotify-action@master with: