Compare commits
103 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| eb620bf2f9 | |||
| 06912f45ec | |||
| e40b503288 | |||
| 370e0446da | |||
| 06675c89e2 | |||
| 1471b407df | |||
| f595d76310 | |||
| 969de17718 | |||
| f5adf955b7 | |||
| bddf26d850 | |||
| 2442a7cbe2 | |||
| 132e06b6c8 | |||
| 4aaee35741 | |||
| f3fa97af99 | |||
| fa99b89a77 | |||
| 8b3d5ed3cc | |||
| ccfc94bcdd | |||
| 0180eee514 | |||
| 6be6358727 | |||
| 0467b09115 | |||
| 28b1927051 | |||
| 29d9464bae | |||
| 3752f6a3b0 | |||
| a9d6929cb1 | |||
| ca3799ef66 | |||
| 7ef7214b6c | |||
| 361b96fab2 | |||
| 6752f4b89e | |||
| 183122f100 | |||
| 5b2396a14e | |||
| 4fa6333025 | |||
| e65eada380 | |||
| 19fd762791 | |||
| 22963f04b9 | |||
| c371fb59f2 | |||
| e3ba46a611 | |||
| afd4c669c4 | |||
| 0e274a3c38 | |||
| ddc71f4b23 | |||
| 366abd9c13 | |||
| 907f453e8d | |||
| cd988942c1 | |||
| 5abda4dd59 | |||
| 3582ec3628 | |||
| 93c6380b4c | |||
| 48fbbc2ba7 | |||
| 32fec9ee37 | |||
| a5cf957709 | |||
| 941d5d917f | |||
| 63d117e16e | |||
| 0e5713916b | |||
| 0aa3569da4 | |||
| b51ba63566 | |||
| becf11ccd9 | |||
| 984ab7b651 | |||
| 76f801c123 | |||
| 5ab147573e | |||
| 347362b6ed | |||
| 1da10ec164 | |||
| 52da0364d1 | |||
| 8fc7ca9528 | |||
| 4e4e48f69e | |||
| 54e15830d3 | |||
| 65294db937 | |||
| 60d986d448 | |||
| d133e94e1b | |||
| 048b128c12 | |||
| 33fb7c3097 | |||
| 1967288da4 | |||
| ba97eb5143 | |||
| 12c2bedb24 | |||
| 1b6a9efdd8 | |||
| 8f5b06b3a8 | |||
| 4b41db3a64 | |||
| 0e60d4c3c3 | |||
| 4262b2dad7 | |||
| 86cbe41ae5 | |||
| fd7fdfc6be | |||
| 5b7bef478f | |||
| 6ae22ec1fc | |||
| 1e95f06358 | |||
| ea8a5f5440 | |||
| 1713afdfdc | |||
| 71b0a020ee | |||
| 0e76be6bab | |||
| 706b504d38 | |||
| d7a9e8b399 | |||
| e0f43b9b12 | |||
| ad370db284 | |||
| c169682cb6 | |||
| 30ae1cb948 | |||
| ffdf0d45c9 | |||
| f1f8077ec5 | |||
| 16306e15f1 | |||
| 9514ca72ec | |||
| d77251e483 | |||
| 52cacd1233 | |||
| 8ecae4f00f | |||
| cc3990bb88 | |||
| ced928ab78 | |||
| 4b72039417 | |||
| 5791c02c40 | |||
| 809296d737 |
@@ -1,8 +0,0 @@
|
|||||||
---
|
|
||||||
version: 2
|
|
||||||
updates:
|
|
||||||
- package-ecosystem: "github-actions"
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: daily
|
|
||||||
time: "06:00"
|
|
||||||
@@ -25,9 +25,6 @@
|
|||||||
- name: "maintenance"
|
- name: "maintenance"
|
||||||
color: 2af79e
|
color: 2af79e
|
||||||
description: "Generic maintenance tasks."
|
description: "Generic maintenance tasks."
|
||||||
- name: "chore"
|
|
||||||
color: 2af79e
|
|
||||||
description: "Generic chore."
|
|
||||||
- name: "ci"
|
- name: "ci"
|
||||||
color: 1d76db
|
color: 1d76db
|
||||||
description: "Work that improves the continue integration."
|
description: "Work that improves the continue integration."
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ categories:
|
|||||||
- "performance"
|
- "performance"
|
||||||
- title: "🧰 Maintenance"
|
- title: "🧰 Maintenance"
|
||||||
labels:
|
labels:
|
||||||
- "chore"
|
- "maintenance"
|
||||||
- "ci"
|
- "ci"
|
||||||
- title: "📚 Documentation"
|
- title: "📚 Documentation"
|
||||||
labels:
|
labels:
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"rebaseWhen": "behind-base-branch",
|
||||||
|
"dependencyDashboard": true,
|
||||||
|
"labels": ["dependencies", "no-stale"],
|
||||||
|
"commitMessagePrefix": "⬆️",
|
||||||
|
"commitMessageTopic": "{{depName}}",
|
||||||
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"matchManagers": ["github-actions"],
|
||||||
|
"addLabels": ["github_actions"],
|
||||||
|
"rangeStrategy": "pin"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchManagers": ["github-actions"],
|
||||||
|
"matchUpdateTypes": ["minor", "patch"],
|
||||||
|
"automerge": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -17,6 +17,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: ⤵️ Check out code from GitHub
|
- name: ⤵️ Check out code from GitHub
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
||||||
- name: 🚀 Run Release Tracker
|
- name: 🚀 Run Release Tracker
|
||||||
uses: vweevers/additional-tags-action@v1.0.0
|
uses: vweevers/additional-tags-action@v2.0.0
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: ⤵️ Check out code from GitHub
|
- name: ⤵️ Check out code from GitHub
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
||||||
- name: 🚀 Run Label Syncer
|
- name: 🚀 Run Label Syncer
|
||||||
uses: micnncim/action-label-syncer@v1.2.0
|
uses: micnncim/action-label-syncer@v1.3.0
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
@@ -2,26 +2,26 @@
|
|||||||
name: Lint
|
name: Lint
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on: [push, pull_request, workflow_dispatch]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
yamllint:
|
||||||
name: 🧹 yamllint
|
name: yamllint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: ⤵️ Check out code from GitHub
|
- name: ⤵️ Check out code from GitHub
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
||||||
- name: 🚀 Run yamllint
|
- name: 🚀 Run yamllint
|
||||||
uses: frenck/action-yamllint@v1.0.1
|
uses: frenck/action-yamllint@v1.5
|
||||||
|
|
||||||
prettier:
|
prettier:
|
||||||
name: 🧹 Prettier
|
name: Prettier
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: ⤵️ Check out code from GitHub
|
- name: ⤵️ Check out code from GitHub
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
||||||
- name: 🚀 Run Prettier
|
- name: 🚀 Run Prettier
|
||||||
uses: creyD/prettier_action@v3.3
|
uses: creyD/prettier_action@v4.6
|
||||||
with:
|
with:
|
||||||
prettier_options: --write **/*.{json,js,md,yaml}
|
prettier_options: --write **/*.{json,js,md,yaml}
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -12,10 +12,10 @@ jobs:
|
|||||||
name: 🔒 Lock closed issues and PRs
|
name: 🔒 Lock closed issues and PRs
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: dessant/lock-threads@v2.0.3
|
- uses: dessant/lock-threads@v5.0.1
|
||||||
with:
|
with:
|
||||||
github-token: ${{ github.token }}
|
github-token: ${{ github.token }}
|
||||||
issue-lock-inactive-days: "30"
|
issue-inactive-days: "30"
|
||||||
issue-lock-reason: ""
|
issue-lock-reason: ""
|
||||||
pr-lock-inactive-days: "1"
|
pr-inactive-days: "1"
|
||||||
pr-lock-reason: ""
|
pr-lock-reason: ""
|
||||||
|
|||||||
@@ -13,6 +13,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 🚀 Run Release Drafter
|
- name: 🚀 Run Release Drafter
|
||||||
uses: release-drafter/release-drafter@v5.13.0
|
uses: release-drafter/release-drafter@v6.4.0
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 🚀 Run stale
|
- name: 🚀 Run stale
|
||||||
uses: actions/stale@v3.0.14
|
uses: actions/stale@v9
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
days-before-stale: 30
|
days-before-stale: 30
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: ⤵️ Check out code from GitHub
|
- name: ⤵️ Check out code from GitHub
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
||||||
- name: 🚀 Run Home Assistant Configuration Check
|
- name: 🚀 Run Home Assistant Configuration Check
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
# MIT License
|
# MIT License
|
||||||
|
|
||||||
Copyright (c) 2021 Franck Nijhof
|
Copyright (c) 2021-2023 Franck Nijhof
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: ⤵️ Check out configuration from GitHub
|
- name: ⤵️ Check out configuration from GitHub
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: 🚀 Run Home Assistant Configuration Check
|
- name: 🚀 Run Home Assistant Configuration Check
|
||||||
uses: frenck/action-home-assistant@v1
|
uses: frenck/action-home-assistant@v1
|
||||||
with:
|
with:
|
||||||
@@ -40,11 +40,12 @@ jobs:
|
|||||||
|
|
||||||
## Arguments
|
## Arguments
|
||||||
|
|
||||||
| Input | Description | Usage |
|
| Input | Description | Usage |
|
||||||
| :-------: | :------------------------------------------------------------------: | :--------: |
|
| :--------: | :------------------------------------------------------------------: | :--------: |
|
||||||
| `path` | Path to the folder containing the Home Assistant Core configuration. | _Optional_ |
|
| `env_file` | Possible path to environment file to use. | _Optional_ |
|
||||||
| `secrets` | Alternative secrets file to use, e.g., "fakesecrets.yaml". | _Optional_ |
|
| `path` | Path to the folder containing the Home Assistant Core configuration. | _Optional_ |
|
||||||
| `version` | Version to use; dev/beta/stable or a specific version number. | _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
|
### 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
|
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.
|
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
|
```yaml
|
||||||
- name: 🚀 Run Home Assistant Core Configuration Check
|
- 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.,
|
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
|
`fakesecrets.yaml`) and make sure the content is the same as your real
|
||||||
`secrets.yaml` (with, of course, fake credentials/data). The GitHub Action
|
`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`:
|
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
|
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
|
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,
|
However, you can specify/override any version you like to check against,
|
||||||
for example, check with Home Assistant Core `2021.1.0`:
|
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
|
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
|
```yaml
|
||||||
- name: 🚀 Run Home Assistant Core Configuration Check
|
- name: 🚀 Run Home Assistant Core Configuration Check
|
||||||
@@ -130,7 +131,7 @@ jobs:
|
|||||||
version: ["stable", "beta", "dev"]
|
version: ["stable", "beta", "dev"]
|
||||||
steps:
|
steps:
|
||||||
- name: ⤵️ Check out configuration from GitHub
|
- name: ⤵️ Check out configuration from GitHub
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: 🚀 Run Home Assistant Configuration Check
|
- name: 🚀 Run Home Assistant Configuration Check
|
||||||
uses: frenck/action-home-assistant@v1
|
uses: frenck/action-home-assistant@v1
|
||||||
with:
|
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.
|
you with some real-world uses of this GitHub Action.
|
||||||
|
|
||||||
- [Frenck's Home Assistant Configuration](https://github.com/frenck/home-assistant-config)
|
- [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
|
Are you using this GitHub Action? Feel free to open up a PR to add your
|
||||||
configuration to this list 😍
|
configuration to this list 😍
|
||||||
@@ -189,21 +195,21 @@ as long as it is version 1.
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: 🚀 Run Home Assistant Configuration Check
|
- name: 🚀 Run Home Assistant Configuration Check
|
||||||
uses: frenck/action-home-assistant@v1.1
|
uses: frenck/action-home-assistant@v1
|
||||||
```
|
```
|
||||||
|
|
||||||
### Automatically update using Dependabot
|
### 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.
|
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
|
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.
|
up to date. Fortunately, GitHub has a tool for that, called: Dependabot.
|
||||||
|
|
||||||
Dependabot can automatically open a pull request on your repository to update
|
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
|
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`:
|
To enable Dependabot, create a file called `.github/dependabot.yaml`:
|
||||||
|
|
||||||
@@ -240,7 +246,7 @@ check [the contributor's page][contributors].
|
|||||||
|
|
||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2021 Franck Nijhof
|
Copyright (c) 2021-2023 Franck Nijhof
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
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-shield]: https://frenck.dev/wp-content/uploads/2019/12/github_sponsor.png
|
||||||
[github-sponsors]: https://github.com/sponsors/frenck
|
[github-sponsors]: https://github.com/sponsors/frenck
|
||||||
[license-shield]: https://img.shields.io/github/license/frenck/action-home-assistant.svg
|
[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/2023.svg
|
||||||
[project-stage-shield]: https://img.shields.io/badge/project%20stage-production%20ready-brightgreen.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-shield]: https://img.shields.io/github/release/frenck/action-home-assistant.svg
|
||||||
[releases]: https://github.com/frenck/action-home-assistant/releases
|
[releases]: https://github.com/frenck/action-home-assistant/releases
|
||||||
|
|||||||
+22
-8
@@ -18,6 +18,9 @@ inputs:
|
|||||||
version:
|
version:
|
||||||
description: Version to use; dev/beta/stable or a specific version number
|
description: Version to use; dev/beta/stable or a specific version number
|
||||||
required: false
|
required: false
|
||||||
|
env_file:
|
||||||
|
description: Possible path to environment file to use
|
||||||
|
required: false
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
@@ -38,7 +41,7 @@ runs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "::set-output name=path::${path}"
|
echo "path=${path}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: 🏗 Ensure secrets are in place
|
- name: 🏗 Ensure secrets are in place
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -84,23 +87,34 @@ runs:
|
|||||||
version="stable"
|
version="stable"
|
||||||
fi
|
fi
|
||||||
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
|
- name: 🚀 Run Home Assistant Configuration Check
|
||||||
shell: bash
|
shell: bash
|
||||||
|
# yamllint disable rule:line-length
|
||||||
run: |
|
run: |
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
--entrypoint "" \
|
--entrypoint "" \
|
||||||
"homeassistant/home-assistant:${{ steps.version.outputs.version }}" \
|
"ghcr.io/home-assistant/home-assistant:${{ steps.version.outputs.version }}" \
|
||||||
python -m homeassistant --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 \
|
docker run --rm \
|
||||||
--entrypoint "" \
|
--entrypoint "" \
|
||||||
-v $(pwd):/github/workspace \
|
--volumes-from ${{ env.JOB_CONTAINER_NAME }} \
|
||||||
--workdir /github/workspace \
|
$env_file_arg \
|
||||||
"homeassistant/home-assistant:${{ steps.version.outputs.version }}" \
|
--workdir ${GITHUB_WORKSPACE} \
|
||||||
|
"ghcr.io/home-assistant/home-assistant:${{ steps.version.outputs.version }}" \
|
||||||
python -m homeassistant \
|
python -m homeassistant \
|
||||||
--config "${{ steps.check.outputs.path }}" \
|
--config "${{ steps.check.outputs.path }}" \
|
||||||
--script check_config
|
--script check_config
|
||||||
|
|||||||
@@ -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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user