https://github.com/kpucynski/action-ha-config-check
Home Assistant config check github action
https://github.com/kpucynski/action-ha-config-check
github-action home-assistant home-assistant-config
Last synced: 2 months ago
JSON representation
Home Assistant config check github action
- Host: GitHub
- URL: https://github.com/kpucynski/action-ha-config-check
- Owner: kpucynski
- License: mit
- Created: 2019-11-20T09:51:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-26T10:32:47.000Z (almost 5 years ago)
- Last Synced: 2024-03-15T08:22:45.512Z (over 1 year ago)
- Topics: github-action, home-assistant, home-assistant-config
- Language: Dockerfile
- Homepage:
- Size: 7.81 KB
- Stars: 7
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Home Assistant config check action
This action checks Home Assistant configuration against specified HA version.
## Usage
Please refer to: https://www.home-assistant.io/docs/tools/check_config/
Additional parameters for `hass` can be suppied by `HASS_EXTRA_ARGS` env.
Home Assistant version can be supplied using `ha_version` parameter (defaults to `latest`).## Configuration
It checks configuration placed in repository root.
You can override config placement using `CONFIG_PATH` env.## Secrets
If you use secrets in configuration which are not included in the repository,
you will have to create dummy file, e.g. `secrets.yaml.tmpl` and change its name before build (check example usage).## Example usage
```yaml
---
name: Config check
on: [push]
jobs:
config-check-stable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: mv secrets.yaml.tmpl secrets.yaml
- uses: kpucynski/action-ha-config-check@master
with:
ha_version: "latest"
env:
HASS_EXTRA_ARGS: "-f -s -i"
```