Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 12c2bedb24 | |||
| 1b6a9efdd8 |
@@ -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
|
||||||
|
|
||||||
|
|||||||
+8
-1
@@ -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"
|
||||||
@@ -102,10 +105,14 @@ runs:
|
|||||||
--entrypoint "" \
|
--entrypoint "" \
|
||||||
"ghcr.io/home-assistant/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 \
|
-v $(pwd):/github/workspace \
|
||||||
|
$env_file_arg \
|
||||||
--workdir /github/workspace \
|
--workdir /github/workspace \
|
||||||
"ghcr.io/home-assistant/home-assistant:${{ steps.version.outputs.version }}" \
|
"ghcr.io/home-assistant/home-assistant:${{ steps.version.outputs.version }}" \
|
||||||
python -m homeassistant \
|
python -m homeassistant \
|
||||||
|
|||||||
Reference in New Issue
Block a user