Compare commits
19 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 12c2bedb24 | |||
| 1b6a9efdd8 | |||
| 8f5b06b3a8 | |||
| 4b41db3a64 | |||
| 0e60d4c3c3 | |||
| 4262b2dad7 | |||
| 86cbe41ae5 | |||
| fd7fdfc6be | |||
| 5b7bef478f | |||
| 6ae22ec1fc | |||
| 1e95f06358 | |||
| ea8a5f5440 | |||
| 1713afdfdc | |||
| 71b0a020ee | |||
| 0e76be6bab | |||
| 706b504d38 | |||
| d7a9e8b399 | |||
| e0f43b9b12 | |||
| ad370db284 |
@@ -17,6 +17,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: ⤵️ Check out code from GitHub
|
||||
uses: actions/checkout@v2.3.4
|
||||
uses: actions/checkout@v2.4.0
|
||||
- name: 🚀 Run Release Tracker
|
||||
uses: vweevers/additional-tags-action@v1.0.0
|
||||
|
||||
@@ -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@v2.4.0
|
||||
- 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 }}
|
||||
|
||||
@@ -10,7 +10,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: ⤵️ Check out code from GitHub
|
||||
uses: actions/checkout@v2.3.4
|
||||
uses: actions/checkout@v2.4.0
|
||||
- name: 🚀 Run yamllint
|
||||
uses: frenck/action-yamllint@v1.1
|
||||
|
||||
@@ -19,9 +19,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: ⤵️ Check out code from GitHub
|
||||
uses: actions/checkout@v2.3.4
|
||||
uses: actions/checkout@v2.4.0
|
||||
- name: 🚀 Run Prettier
|
||||
uses: creyD/prettier_action@v3.3
|
||||
uses: creyD/prettier_action@v4.1.1
|
||||
with:
|
||||
prettier_options: --write **/*.{json,js,md,yaml}
|
||||
env:
|
||||
|
||||
@@ -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: ""
|
||||
|
||||
@@ -13,6 +13,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 🚀 Run Release Drafter
|
||||
uses: release-drafter/release-drafter@v5.15.0
|
||||
uses: release-drafter/release-drafter@v5.16.1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -13,7 +13,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 🚀 Run stale
|
||||
uses: actions/stale@v3.0.18
|
||||
uses: actions/stale@v4
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
days-before-stale: 30
|
||||
|
||||
@@ -10,7 +10,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: ⤵️ Check out code from GitHub
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v2.4.0
|
||||
- name: 🚀 Run Home Assistant Configuration Check
|
||||
uses: ./
|
||||
with:
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -147,6 +148,8 @@ 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)
|
||||
|
||||
Are you using this GitHub Action? Feel free to open up a PR to add your
|
||||
configuration to this list 😍
|
||||
@@ -242,7 +245,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
|
||||
@@ -267,7 +270,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
|
||||
|
||||
+18
-4
@@ -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"
|
||||
@@ -86,21 +89,32 @@ runs:
|
||||
fi
|
||||
echo "::set-output name=version::${version}"
|
||||
|
||||
docker pull -q "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
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"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
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user