From e6178f79842154533c69494c14b9610065ea37b6 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Sun, 31 Aug 2025 22:13:17 -0400 Subject: [PATCH] Updating workflow triggers. --- .../gitea_tar-valon_ansible_deploy.yml | 5 +++ .../workflows/homeassistant-config-check.yml | 44 +------------------ 2 files changed, 6 insertions(+), 43 deletions(-) diff --git a/.gitea/workflows/gitea_tar-valon_ansible_deploy.yml b/.gitea/workflows/gitea_tar-valon_ansible_deploy.yml index 1c3ad25..f8ef28f 100644 --- a/.gitea/workflows/gitea_tar-valon_ansible_deploy.yml +++ b/.gitea/workflows/gitea_tar-valon_ansible_deploy.yml @@ -2,6 +2,11 @@ name: Gitea Branch PR & Ansible Deployment on: workflow_dispatch: + workflow_run: + workflows: ["Home Assistant Config Check"] + types: + - completed + branches: main push: branches-ignore: - 'main' diff --git a/.gitea/workflows/homeassistant-config-check.yml b/.gitea/workflows/homeassistant-config-check.yml index a18a5b4..45412a4 100644 --- a/.gitea/workflows/homeassistant-config-check.yml +++ b/.gitea/workflows/homeassistant-config-check.yml @@ -6,7 +6,7 @@ on: branches-ignore: - 'main' paths: - - 'app-configs/rikku/homeassistant/configuration.yaml' + - 'app-configs/rikku/homeassistant/**' - '**/homeassistant-config-check.yml' jobs: @@ -18,37 +18,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - # - name: Set up Python 3.13.2 - # uses: actions/setup-python@v5 - # with: - # python-version: '3.13.2' - # cache: 'pip' - - # - name: Gotify Notification (setup) - # uses: eikendev/gotify-action@master - # with: - # gotify_api_base: ${{ secrets.GOTIFY_URL }} - # gotify_app_token: ${{ secrets.RUNNER_GOTIFY_TOKEN }} - # notification_title: 'GITEA: Home Assistant Config Check' - # notification_message: 'Setting up Python and dependencies...' - - # - name: Cache virtualenv - # id: cache-venv - # uses: actions/cache@v4 - # with: - # path: .venv - # key: venv-${{ runner.os }}-py3.13-ha2025.8.3 - # restore-keys: | - # venv-${{ runner.os }}-py3.13- - - # - name: Install Home Assistant - # if: steps.cache-venv.outputs.cache-hit != 'true' - # run: | - # python -m venv .venv - # source .venv/bin/activate - # pip install --upgrade pip wheel - # pip install homeassistant==${{ env.HA_VERSION }} - - name: Gotify Notification (start check) uses: eikendev/gotify-action@master with: @@ -57,23 +26,12 @@ jobs: notification_title: 'GITEA: Home Assistant Config Check' notification_message: 'Starting config check...' - - name: Debug - run: | - pwd - echo "Workspace dir: ${{ github.workspace }}" - echo ${{ env.JOB_CONTAINER_NAME }} - - name: 🚀 Run Home Assistant Configuration Check uses: https://git.trez.wtf/Trez.One/action-home-assistant@main with: path: "app-configs/rikku/homeassistant" version: "stable" - # - name: Run Home Assistant config check - # run: | - # source .venv/bin/activate - # hass --config ansible/configs/homeassistant --script check_config | tee ha-check.log - - name: Gotify Notification (done) uses: eikendev/gotify-action@master with: