Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 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
|
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@v2.4.0
|
||||||
- name: 🚀 Run Release Tracker
|
- name: 🚀 Run Release Tracker
|
||||||
uses: vweevers/additional-tags-action@v1.0.0
|
uses: vweevers/additional-tags-action@v1.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@v2.4.0
|
||||||
- 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 }}
|
||||||
|
|||||||
@@ -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.3.4
|
uses: actions/checkout@v2.4.0
|
||||||
- name: 🚀 Run yamllint
|
- name: 🚀 Run yamllint
|
||||||
uses: frenck/action-yamllint@v1.1
|
uses: frenck/action-yamllint@v1.1
|
||||||
|
|
||||||
@@ -19,9 +19,9 @@ 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@v2.4.0
|
||||||
- name: 🚀 Run Prettier
|
- name: 🚀 Run Prettier
|
||||||
uses: creyD/prettier_action@v3.3
|
uses: creyD/prettier_action@v4.1.1
|
||||||
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@v3.0.0
|
||||||
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.15.0
|
uses: release-drafter/release-drafter@v5.16.1
|
||||||
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.18
|
uses: actions/stale@v4
|
||||||
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@v2.4.0
|
||||||
- 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-2022 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
|
||||||
|
|||||||
@@ -147,6 +147,8 @@ 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)
|
- [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)
|
- [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
|
Are you using this GitHub Action? Feel free to open up a PR to add your
|
||||||
configuration to this list 😍
|
configuration to this list 😍
|
||||||
@@ -242,7 +244,7 @@ check [the contributor's page][contributors].
|
|||||||
|
|
||||||
MIT License
|
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
|
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
|
||||||
@@ -267,7 +269,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/2022.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
|
||||||
|
|||||||
+10
-3
@@ -86,21 +86,28 @@ runs:
|
|||||||
fi
|
fi
|
||||||
echo "::set-output name=version::${version}"
|
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
|
- 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
|
||||||
|
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
--entrypoint "" \
|
--entrypoint "" \
|
||||||
-v $(pwd):/github/workspace \
|
-v $(pwd):/github/workspace \
|
||||||
--workdir /github/workspace \
|
--workdir /github/workspace \
|
||||||
"homeassistant/home-assistant:${{ steps.version.outputs.version }}" \
|
"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,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