Update presence.yaml #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |