Updating workflow triggers.
This commit is contained in:
@@ -2,6 +2,11 @@ name: Gitea Branch PR & Ansible Deployment
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
workflow_run:
|
||||||
|
workflows: ["Home Assistant Config Check"]
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
branches: main
|
||||||
push:
|
push:
|
||||||
branches-ignore:
|
branches-ignore:
|
||||||
- 'main'
|
- 'main'
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ on:
|
|||||||
branches-ignore:
|
branches-ignore:
|
||||||
- 'main'
|
- 'main'
|
||||||
paths:
|
paths:
|
||||||
- 'app-configs/rikku/homeassistant/configuration.yaml'
|
- 'app-configs/rikku/homeassistant/**'
|
||||||
- '**/homeassistant-config-check.yml'
|
- '**/homeassistant-config-check.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -18,37 +18,6 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
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)
|
- name: Gotify Notification (start check)
|
||||||
uses: eikendev/gotify-action@master
|
uses: eikendev/gotify-action@master
|
||||||
with:
|
with:
|
||||||
@@ -57,23 +26,12 @@ jobs:
|
|||||||
notification_title: 'GITEA: Home Assistant Config Check'
|
notification_title: 'GITEA: Home Assistant Config Check'
|
||||||
notification_message: 'Starting 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
|
- name: 🚀 Run Home Assistant Configuration Check
|
||||||
uses: https://git.trez.wtf/Trez.One/action-home-assistant@main
|
uses: https://git.trez.wtf/Trez.One/action-home-assistant@main
|
||||||
with:
|
with:
|
||||||
path: "app-configs/rikku/homeassistant"
|
path: "app-configs/rikku/homeassistant"
|
||||||
version: "stable"
|
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)
|
- name: Gotify Notification (done)
|
||||||
uses: eikendev/gotify-action@master
|
uses: eikendev/gotify-action@master
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user