Compare commits
24 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 941d5d917f | |||
| 63d117e16e | |||
| 0e5713916b | |||
| 0aa3569da4 | |||
| b51ba63566 | |||
| becf11ccd9 | |||
| 984ab7b651 | |||
| 76f801c123 | |||
| 5ab147573e | |||
| 347362b6ed | |||
| 1da10ec164 | |||
| 52da0364d1 | |||
| 8fc7ca9528 | |||
| 4e4e48f69e | |||
| 54e15830d3 | |||
| 65294db937 | |||
| 60d986d448 | |||
| d133e94e1b | |||
| 048b128c12 | |||
| 33fb7c3097 | |||
| 1967288da4 | |||
| ba97eb5143 | |||
| 12c2bedb24 | |||
| 1b6a9efdd8 |
@@ -17,6 +17,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: ⤵️ Check out code from GitHub
|
||||
uses: actions/checkout@v2.4.0
|
||||
uses: actions/checkout@v3
|
||||
- name: 🚀 Run Release Tracker
|
||||
uses: vweevers/additional-tags-action@v1.0.0
|
||||
|
||||
@@ -16,7 +16,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: ⤵️ Check out code from GitHub
|
||||
uses: actions/checkout@v2.4.0
|
||||
uses: actions/checkout@v3
|
||||
- name: 🚀 Run Label Syncer
|
||||
uses: micnncim/action-label-syncer@v1.3.0
|
||||
env:
|
||||
|
||||
@@ -10,18 +10,18 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: ⤵️ Check out code from GitHub
|
||||
uses: actions/checkout@v2.4.0
|
||||
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.4.0
|
||||
uses: actions/checkout@v3
|
||||
- name: 🚀 Run Prettier
|
||||
uses: creyD/prettier_action@v4.1.1
|
||||
uses: creyD/prettier_action@v4.2
|
||||
with:
|
||||
prettier_options: --write **/*.{json,js,md,yaml}
|
||||
env:
|
||||
|
||||
@@ -12,7 +12,7 @@ jobs:
|
||||
name: 🔒 Lock closed issues and PRs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: dessant/lock-threads@v3.0.0
|
||||
- uses: dessant/lock-threads@v4.0.0
|
||||
with:
|
||||
github-token: ${{ github.token }}
|
||||
issue-inactive-days: "30"
|
||||
|
||||
@@ -13,6 +13,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 🚀 Run Release Drafter
|
||||
uses: release-drafter/release-drafter@v5.16.1
|
||||
uses: release-drafter/release-drafter@v5.21.1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -13,7 +13,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 🚀 Run stale
|
||||
uses: actions/stale@v4
|
||||
uses: actions/stale@v7
|
||||
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.4.0
|
||||
uses: actions/checkout@v3
|
||||
- name: 🚀 Run Home Assistant Configuration Check
|
||||
uses: ./
|
||||
with:
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
# MIT License
|
||||
|
||||
Copyright (c) 2021-2022 Franck Nijhof
|
||||
Copyright (c) 2021-2023 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
|
||||
|
||||
@@ -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:
|
||||
@@ -149,6 +150,7 @@ you with some real-world uses of this GitHub Action.
|
||||
- [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 😍
|
||||
@@ -244,7 +246,7 @@ check [the contributor's page][contributors].
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021-2022 Franck Nijhof
|
||||
Copyright (c) 2021-2023 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
|
||||
@@ -269,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/2022.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
|
||||
[releases-shield]: https://img.shields.io/github/release/frenck/action-home-assistant.svg
|
||||
[releases]: https://github.com/frenck/action-home-assistant/releases
|
||||
|
||||
+10
-3
@@ -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,7 +87,7 @@ runs:
|
||||
version="stable"
|
||||
fi
|
||||
fi
|
||||
echo "::set-output name=version::${version}"
|
||||
echo "version=${version}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
docker pull -q "ghcr.io/home-assistant/home-assistant:${version}"
|
||||
|
||||
@@ -102,10 +105,14 @@ runs:
|
||||
--entrypoint "" \
|
||||
"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 \
|
||||
"ghcr.io/home-assistant/home-assistant:${{ steps.version.outputs.version }}" \
|
||||
python -m homeassistant \
|
||||
|
||||
@@ -20,6 +20,16 @@
|
||||
"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