Updating workflow triggers.

This commit is contained in:
2025-08-31 22:13:17 -04:00
parent 5ea24d11f8
commit e6178f7984
2 changed files with 6 additions and 43 deletions
@@ -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'
@@ -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: