Skip to content

Update presence.yaml #44

Update presence.yaml

Update presence.yaml #44

name: Home Assistant Configuration Check
on: [push, pull_request]
jobs:
version_env:
name: Get Installed Version for Testing
runs-on: ubuntu-latest
outputs:
current_version: ${{ steps.currentver.outputs.current_version }}
steps:
- name: Get config from GitHub
uses: actions/checkout@v4
- name: Get Installed Version from .HA_VERSION
id: currentver
run: |
HA_VERSION=$(<config/.HA_VERSION)
echo $HA_VERSION
echo "current_version=$HA_VERSION" >> $GITHUB_OUTPUT
home-assistant:
name: Home Assistant Core Configuration Check for ${{ matrix.version }} version
runs-on: ubuntu-latest
needs: [version_env]
strategy:
matrix:
version: ["${{needs.version_env.outputs.current_version}}", "stable"]
steps:
- name: ⤵️ Check out configuration from GitHub
uses: actions/checkout@v4
- name: Update config
run: |
sed -i 's/\/share\/camera/.\/config/g' ./config/configuration.yaml
sed -i 's/\/share\/camera/.\/config/g' ./config/packages/security.yaml
- name: 🚀 Run Home Assistant Configuration Check
uses: frenck/action-home-assistant@v1.4.1
with:
path: "./config"
secrets: secrets.fake.yaml
version: "${{ matrix.version }}"