Compare commits

...

38 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
11 changed files with 82 additions and 29 deletions
+1 -1
View File
@@ -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@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 }}
+4 -4
View File
@@ -10,18 +10,18 @@ jobs:
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.1
uses: frenck/action-yamllint@v1.3
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.15.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.18
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
+13 -9
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
@@ -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:
@@ -147,6 +148,9 @@ 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 😍
@@ -242,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
@@ -267,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 -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
+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
}
]
}
]
}