Compare commits

...

53 Commits

Author SHA1 Message Date
Franck Nijhof 0aa3569da4 Remove deprecated set-output command (#69) 2022-11-22 14:01:02 +01:00
dependabot[bot] b51ba63566 Bump release-drafter/release-drafter from 5.21.0 to 5.21.1 (#68)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 17:38:44 +02:00
Jenny becf11ccd9 Add repo to real-world uses (#67) 2022-09-26 14:34:16 +02:00
dependabot[bot] 984ab7b651 Bump actions/stale from 5 to 6 (#66)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-22 09:15:18 +02:00
dependabot[bot] 76f801c123 Bump release-drafter/release-drafter from 5.20.1 to 5.21.0 (#65)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-16 08:17:08 +02:00
dependabot[bot] 5ab147573e Bump frenck/action-yamllint from 1.2 to 1.3 (#64)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-15 10:02:04 +02:00
dependabot[bot] 347362b6ed Bump release-drafter/release-drafter from 5.20.0 to 5.20.1 (#63)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-16 11:24:45 +02:00
dependabot[bot] 1da10ec164 Bump frenck/action-yamllint from 1.1 to 1.2 (#62)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-12 08:44:52 +02:00
Sven Serlier 52da0364d1 Update actions (#61) 2022-07-05 12:27:21 +02:00
dependabot[bot] 8fc7ca9528 Bump release-drafter/release-drafter from 5.19.0 to 5.20.0 (#60)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-12 09:48:18 +02:00
dependabot[bot] 4e4e48f69e Bump actions/stale from 4 to 5 (#59)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 13:01:18 +02:00
Franck Nijhof 54e15830d3 Annotate missing integration error (#58) 2022-03-14 16:45:20 +01:00
dependabot[bot] 65294db937 Bump release-drafter/release-drafter from 5.18.1 to 5.19.0 (#55)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-08 08:34:56 +01:00
dependabot[bot] 60d986d448 Bump actions/checkout from 2.4.0 to 3 (#54)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-02 09:24:07 +01:00
dependabot[bot] d133e94e1b Bump release-drafter/release-drafter from 5.18.0 to 5.18.1 (#53)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-07 08:52:50 +01:00
dependabot[bot] 048b128c12 Bump release-drafter/release-drafter from 5.17.6 to 5.18.0 (#52)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-04 08:57:16 +01:00
dependabot[bot] 33fb7c3097 Bump release-drafter/release-drafter from 5.17.5 to 5.17.6 (#51)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-20 08:54:47 +01:00
dependabot[bot] 1967288da4 Bump creyD/prettier_action from 4.1.1 to 4.2 (#50)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-17 11:05:48 +01:00
dependabot[bot] ba97eb5143 Bump release-drafter/release-drafter from 5.16.1 to 5.17.5 (#49)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-17 10:59:21 +01:00
Franck Nijhof 12c2bedb24 Document env_file option (#48)
Co-authored-by: frenck <frenck@users.noreply.github.com>
2022-01-16 19:10:56 +01:00
Nanne 1b6a9efdd8 Support optional env_file input (#47)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-01-16 19:08:25 +01:00
Franck Nijhof 8f5b06b3a8 Use the GitHub Container Registry, instead of DockerHub (#46) 2022-01-13 09:09:45 +01:00
Franck Nijhof 4b41db3a64 🎆 Updates maintenance/license year to 2022 (#45) 2022-01-13 08:57:23 +01:00
dependabot[bot] 0e60d4c3c3 Bump release-drafter/release-drafter from 5.15.0 to 5.16.1 (#44)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-13 08:53:09 +01:00
dependabot[bot] 4262b2dad7 Bump creyD/prettier_action from 4.0 to 4.1.1 (#42)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-07 08:23:29 +01:00
dependabot[bot] 86cbe41ae5 Bump actions/checkout from 2.3.5 to 2.4.0 (#40)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-09 15:01:32 +01:00
Robert Bradley fd7fdfc6be Adding Robbrads HA Config (#39) 2021-10-30 17:53:09 +02:00
dependabot[bot] 5b7bef478f Bump actions/checkout from 2.3.4 to 2.3.5 (#38)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-18 09:38:15 +02:00
Franck Nijhof 6ae22ec1fc Upgrade lock-threads workflow to 3.0.0 (#37) 2021-10-07 17:50:38 +02:00
dependabot[bot] 1e95f06358 Bump creyD/prettier_action from 3.3 to 4.0 (#35)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-23 16:14:06 +02:00
dependabot[bot] ea8a5f5440 Bump dessant/lock-threads from 2.1.1 to 2.1.2 (#34)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-18 08:58:19 +02:00
dependabot[bot] 1713afdfdc Bump actions/stale from 3.0.19 to 4 (#33)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-15 09:36:03 +02:00
Franck Nijhof 71b0a020ee Fix problem matcher registration (#32) 2021-07-14 14:54:26 +02:00
Franck Nijhof 0e76be6bab Add first step for a Home Assistant problem matcher (#31) 2021-07-14 14:36:24 +02:00
dependabot[bot] 706b504d38 Bump dessant/lock-threads from 2.0.3 to 2.1.1 (#30)
Bumps [dessant/lock-threads](https://github.com/dessant/lock-threads) from 2.0.3 to 2.1.1.
- [Release notes](https://github.com/dessant/lock-threads/releases)
- [Changelog](https://github.com/dessant/lock-threads/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dessant/lock-threads/compare/v2.0.3...v2.1.1)

---
updated-dependencies:
- dependency-name: dessant/lock-threads
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-12 13:21:45 +02:00
dependabot[bot] d7a9e8b399 Bump micnncim/action-label-syncer from 1.2.0 to 1.3.0 (#28)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-25 11:04:01 +02:00
dependabot[bot] e0f43b9b12 Bump actions/stale from 3.0.18 to 3.0.19 (#27) 2021-05-18 10:25:23 +02:00
Nathan Tilley ad370db284 Add ntilley905's Configuration to Real World Examples (#26) 2021-04-20 22:05:35 +02:00
tigattack c169682cb6 Pull HASS image quietly (#25)
This will eliminate a lot of unnecessary log spam.
2021-04-20 00:54:25 +02:00
dependabot[bot] 30ae1cb948 Bump release-drafter/release-drafter from v5.14.0 to v5.15.0 (#24)
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from v5.14.0 to v5.15.0.
- [Release notes](https://github.com/release-drafter/release-drafter/releases)
- [Commits](https://github.com/release-drafter/release-drafter/compare/v5.14.0...fe52e97d262833ae07d05efaf1a239df3f1b5cd4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-17 09:11:29 +01:00
dependabot[bot] ffdf0d45c9 Bump actions/stale from v3.0.17 to v3.0.18 (#23)
Bumps [actions/stale](https://github.com/actions/stale) from v3.0.17 to v3.0.18.
- [Release notes](https://github.com/actions/stale/releases)
- [Commits](https://github.com/actions/stale/compare/v3.0.17...3b3c3f03cd4d8e2b61e179ef744a0d20efbe90b4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-08 10:35:59 +01:00
dependabot[bot] f1f8077ec5 Bump actions/stale from v3.0.16 to v3.0.17 (#21) 2021-02-19 08:30:45 +01:00
dependabot[bot] 16306e15f1 Bump release-drafter/release-drafter from v5.13.0 to v5.14.0 (#18)
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from v5.13.0 to v5.14.0.
- [Release notes](https://github.com/release-drafter/release-drafter/releases)
- [Commits](https://github.com/release-drafter/release-drafter/compare/v5.13.0...e5ccf147077e46b0225a80bbe314d795d77bb7a2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-15 12:00:13 +01:00
dependabot[bot] 9514ca72ec Bump actions/stale from v3.0.15 to v3.0.16 (#17)
Bumps [actions/stale](https://github.com/actions/stale) from v3.0.15 to v3.0.16.
- [Release notes](https://github.com/actions/stale/releases)
- [Commits](https://github.com/actions/stale/compare/v3.0.15...9d6f46564a515a9ea11e7762ab3957ee58ca50da)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-08 11:29:45 +01:00
dependabot[bot] d77251e483 Bump frenck/action-yamllint from v1.0.2 to v1.1 (#16)
Bumps [frenck/action-yamllint](https://github.com/frenck/action-yamllint) from v1.0.2 to v1.1.
- [Release notes](https://github.com/frenck/action-yamllint/releases)
- [Commits](https://github.com/frenck/action-yamllint/compare/v1.0.2...e21bcc770907b7207a05453ca9f1eb7129c945d1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-02 12:45:17 +01:00
Robert 52cacd1233 Add /me to real world examples (#15) 2021-01-27 21:32:27 +01:00
dependabot[bot] 8ecae4f00f Bump actions/stale from v3.0.14 to v3.0.15 (#14)
Bumps [actions/stale](https://github.com/actions/stale) from v3.0.14 to v3.0.15.
- [Release notes](https://github.com/actions/stale/releases)
- [Commits](https://github.com/actions/stale/compare/v3.0.14...86561461b92875de77a8b2d2e75f004c826e8f45)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-25 11:39:50 +01:00
dependabot[bot] cc3990bb88 Bump frenck/action-yamllint from v1.0.1 to v1.0.2 (#12)
Bumps [frenck/action-yamllint](https://github.com/frenck/action-yamllint) from v1.0.1 to v1.0.2.
- [Release notes](https://github.com/frenck/action-yamllint/releases)
- [Commits](https://github.com/frenck/action-yamllint/compare/v1.0.1...400c8cd5cb057e97f2fbb9d1a094ad4ec368e52c)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-14 20:43:46 +01:00
Klaas Schoute ced928ab78 Add Klaas Schouten's repo to real-world examples (#13) 2021-01-14 20:43:14 +01:00
Franck Nijhof 4b72039417 Fix maintenance vs chore label issue (#11) 2021-01-13 23:44:28 +01:00
Franck Nijhof 5791c02c40 Tweaks to naming in Linter CI (#10) 2021-01-13 23:41:34 +01:00
Franck Nijhof 809296d737 Collection of small documentation tweaks (#7) 2021-01-13 14:25:30 +01:00
Franck Nijhof db45c16e1e Trigger additional tags on release and manual (#6) 2021-01-13 13:49:49 +01:00
13 changed files with 101 additions and 45 deletions
-3
View File
@@ -25,9 +25,6 @@
- name: "maintenance"
color: 2af79e
description: "Generic maintenance tasks."
- name: "chore"
color: 2af79e
description: "Generic chore."
- name: "ci"
color: 1d76db
description: "Work that improves the continue integration."
+1 -1
View File
@@ -21,7 +21,7 @@ categories:
- "performance"
- title: "🧰 Maintenance"
labels:
- "chore"
- "maintenance"
- "ci"
- title: "📚 Documentation"
labels:
+5 -1
View File
@@ -6,6 +6,10 @@ on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
release:
types:
- published
workflow_dispatch:
jobs:
additional-tags:
@@ -13,6 +17,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3
- name: 🚀 Run Release Tracker
uses: vweevers/additional-tags-action@v1.0.0
+2 -2
View File
@@ -16,8 +16,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3
- name: 🚀 Run Label Syncer
uses: micnncim/action-label-syncer@v1.2.0
uses: micnncim/action-label-syncer@v1.3.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+8 -8
View File
@@ -2,26 +2,26 @@
name: Lint
# yamllint disable-line rule:truthy
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
jobs:
build:
name: 🧹 yamllint
yamllint:
name: yamllint
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3
- name: 🚀 Run yamllint
uses: frenck/action-yamllint@v1.0.1
uses: frenck/action-yamllint@v1.3
prettier:
name: 🧹 Prettier
name: Prettier
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3
- name: 🚀 Run Prettier
uses: creyD/prettier_action@v3.3
uses: creyD/prettier_action@v4.2
with:
prettier_options: --write **/*.{json,js,md,yaml}
env:
+3 -3
View File
@@ -12,10 +12,10 @@ jobs:
name: 🔒 Lock closed issues and PRs
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2.0.3
- uses: dessant/lock-threads@v3.0.0
with:
github-token: ${{ github.token }}
issue-lock-inactive-days: "30"
issue-inactive-days: "30"
issue-lock-reason: ""
pr-lock-inactive-days: "1"
pr-inactive-days: "1"
pr-lock-reason: ""
+1 -1
View File
@@ -13,6 +13,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🚀 Run Release Drafter
uses: release-drafter/release-drafter@v5.13.0
uses: release-drafter/release-drafter@v5.21.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+1 -1
View File
@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🚀 Run stale
uses: actions/stale@v3.0.14
uses: actions/stale@v6
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30
+1 -1
View File
@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: 🚀 Run Home Assistant Configuration Check
uses: ./
with:
+1 -1
View File
@@ -1,6 +1,6 @@
# MIT License
Copyright (c) 2021 Franck Nijhof
Copyright (c) 2021-2022 Franck Nijhof
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
+23 -17
View File
@@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out configuration from GitHub
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: 🚀 Run Home Assistant Configuration Check
uses: frenck/action-home-assistant@v1
with:
@@ -40,11 +40,12 @@ jobs:
## Arguments
| Input | Description | Usage |
| :-------: | :------------------------------------------------------------------: | :--------: |
| `path` | Path to the folder containing the Home Assistant Core configuration. | _Optional_ |
| `secrets` | Alternative secrets file to use, e.g., "fakesecrets.yaml". | _Optional_ |
| `version` | Version to use; dev/beta/stable or a specific version number. | _Optional_ |
| Input | Description | Usage |
| :--------: | :------------------------------------------------------------------: | :--------: |
| `env_file` | Possible path to environment file to use. | _Optional_ |
| `path` | Path to the folder containing the Home Assistant Core configuration. | _Optional_ |
| `secrets` | Alternative secrets file to use, e.g., "fakesecrets.yaml". | _Optional_ |
| `version` | Version to use; dev/beta/stable or a specific version number. | _Optional_ |
### Specific configuration folder
@@ -52,7 +53,7 @@ By default, this GitHub Action will use the root folder as the Home Assistant
Core configuration folder. If you store your Home Assistant configuration in a
subfolder, the `path` argument can be used to inform the Action about that.
For example, if you configuration is in the `config` folder:
For example, if your configuration is in the `config` folder:
```yaml
- name: 🚀 Run Home Assistant Core Configuration Check
@@ -71,7 +72,7 @@ This GitHub Action offers a way around that, but using a fake secrets file.
To use this, add a fake secrets file to your repository (e.g.,
`fakesecrets.yaml`) and make sure the content is the same as your real
`secrets.yaml` (with, of course, fake credentials/data). The GitHub Action
will use this file during checking your configuration.
will use this file while checking your configuration.
For example, if you fake secrets file is `fakesecrets.yaml`:
@@ -91,7 +92,7 @@ folder.
If the `.HA_VERSION` file is found, the version in that file is used. If
the `.HA_VERSION` file is not found; the Action will use the latest stable
version of Home Assistant to test your configuration with.
version of Home Assistant to test your configuration.
However, you can specify/override any version you like to check against,
for example, check with Home Assistant Core `2021.1.0`:
@@ -104,7 +105,7 @@ for example, check with Home Assistant Core `2021.1.0`:
```
Alternatively, you can also use `stable`, `beta` or `dev` to run against
latest versions of those stability channels.
the latest versions of those stability channels.
```yaml
- name: 🚀 Run Home Assistant Core Configuration Check
@@ -130,7 +131,7 @@ jobs:
version: ["stable", "beta", "dev"]
steps:
- name: ⤵️ Check out configuration from GitHub
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: 🚀 Run Home Assistant Configuration Check
uses: frenck/action-home-assistant@v1
with:
@@ -145,6 +146,11 @@ The following repositories are using this GitHub Action, and thus provide
you with some real-world uses of this GitHub Action.
- [Frenck's Home Assistant Configuration](https://github.com/frenck/home-assistant-config)
- [Klaasnicolaas - Student Home Assistant Configuration](https://github.com/klaasnicolaas/Student-homeassistant-config)
- [Metbril's :sunglasses: Home Assistant Configuration](https://github.com/metbril/home-assistant-config)
- [ntilley905's Home Assistant Configuration](https://github.com/ntilley905/hass)
- [robbrad's Home Assistant Configuration](https://github.com/robbrad/HA-Config)
- [Pinkywafer's Home Assistant Configuration](https://github.com/pinkywafer/Home-Assistant_Config)
Are you using this GitHub Action? Feel free to open up a PR to add your
configuration to this list 😍
@@ -189,21 +195,21 @@ as long as it is version 1.
```yaml
- name: 🚀 Run Home Assistant Configuration Check
uses: frenck/action-home-assistant@v1.1
uses: frenck/action-home-assistant@v1
```
### Automatically update using Dependabot
The advantage of locking against a more specific version, is that it prevent
The advantage of locking against a more specific version, is that it prevents
surprises if an issue or breaking changes were introduced in a newer release.
The disadvantage of being more specific, is that it requires you to keep things
up to date. Fortunately, GitHub has a tool for that, called: Dependabot.
Dependabot can automatically open a pull request on your repository to update
this action for you. You can instantly see if the new version works (as the
this Action for you. You can instantly see if the new version works (as the
pull request shows the success or failure status) and you can decide to
merge it in but hitting the merge button. Quick, easy and always up2date.
merge it in by hitting the merge button. Quick, easy and always up2date.
To enable Dependabot, create a file called `.github/dependabot.yaml`:
@@ -240,7 +246,7 @@ check [the contributor's page][contributors].
MIT License
Copyright (c) 2021 Franck Nijhof
Copyright (c) 2021-2022 Franck Nijhof
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -265,7 +271,7 @@ SOFTWARE.
[github-sponsors-shield]: https://frenck.dev/wp-content/uploads/2019/12/github_sponsor.png
[github-sponsors]: https://github.com/sponsors/frenck
[license-shield]: https://img.shields.io/github/license/frenck/action-home-assistant.svg
[maintenance-shield]: https://img.shields.io/maintenance/yes/2021.svg
[maintenance-shield]: https://img.shields.io/maintenance/yes/2022.svg
[project-stage-shield]: https://img.shields.io/badge/project%20stage-production%20ready-brightgreen.svg
[releases-shield]: https://img.shields.io/github/release/frenck/action-home-assistant.svg
[releases]: https://github.com/frenck/action-home-assistant/releases
+20 -6
View File
@@ -18,6 +18,9 @@ inputs:
version:
description: Version to use; dev/beta/stable or a specific version number
required: false
env_file:
description: Possible path to environment file to use
required: false
runs:
using: "composite"
@@ -38,7 +41,7 @@ runs:
exit 1
fi
echo "::set-output name=path::${path}"
echo "path=${path}" >> "$GITHUB_OUTPUT"
- name: 🏗 Ensure secrets are in place
shell: bash
@@ -84,23 +87,34 @@ runs:
version="stable"
fi
fi
echo "::set-output name=version::${version}"
echo "version=${version}" >> "$GITHUB_OUTPUT"
docker pull "homeassistant/home-assistant:${version}"
docker pull -q "ghcr.io/home-assistant/home-assistant:${version}"
- name: 🏗 Register Home Assistant problem matcher
shell: bash
run: |
matcher="${{ github.action_path }}/matcher.json"
echo "::add-matcher::${matcher}"
- name: 🚀 Run Home Assistant Configuration Check
shell: bash
# yamllint disable rule:line-length
run: |
docker run --rm \
--entrypoint "" \
"homeassistant/home-assistant:${{ steps.version.outputs.version }}" \
"ghcr.io/home-assistant/home-assistant:${{ steps.version.outputs.version }}" \
python -m homeassistant --version
env_file_arg=""
if [[ -f "${{ inputs.env_file }}" ]]; then
env_file_arg="--env-file ${{ inputs.env_file }}"
fi
docker run --rm \
--entrypoint "" \
-v $(pwd):/github/workspace \
$env_file_arg \
--workdir /github/workspace \
"homeassistant/home-assistant:${{ steps.version.outputs.version }}" \
"ghcr.io/home-assistant/home-assistant:${{ steps.version.outputs.version }}" \
python -m homeassistant \
--config "${{ steps.check.outputs.path }}" \
--script check_config
+35
View File
@@ -0,0 +1,35 @@
{
"problemMatcher": [
{
"owner": "homeassistant-warnings",
"pattern": [
{
"regexp": "^(WARNING):(.*)$",
"severity": 1,
"message": 2
}
]
},
{
"owner": "homeassistant-invalid-config",
"pattern": [
{
"regexp": "(Invalid config for .*) \\(See (.*)(?::|, line )(\\d|\\?)\\)",
"file": 2,
"line": 3,
"message": 1
}
]
},
{
"owner": "homeassistant-platform-error-integration-not-found",
"pattern": [
{
"regexp": "Platform (error) .* - (Integration '.*' not found).$",
"severity": 1,
"message": 2
}
]
}
]
}