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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: ⤵️ Check out code from GitHub
|
- name: ⤵️ Check out code from GitHub
|
||||||
uses: actions/checkout@v2.4.0
|
uses: actions/checkout@v3
|
||||||
- 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,7 +16,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.4.0
|
uses: actions/checkout@v3
|
||||||
- name: 🚀 Run Label Syncer
|
- name: 🚀 Run Label Syncer
|
||||||
uses: micnncim/action-label-syncer@v1.3.0
|
uses: micnncim/action-label-syncer@v1.3.0
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -10,18 +10,18 @@ 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.4.0
|
uses: actions/checkout@v3
|
||||||
- name: 🚀 Run yamllint
|
- name: 🚀 Run yamllint
|
||||||
uses: frenck/action-yamllint@v1.1
|
uses: frenck/action-yamllint@v1.3
|
||||||
|
|
||||||
prettier:
|
prettier:
|
||||||
name: Prettier
|
name: Prettier
|
||||||
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.4.0
|
uses: actions/checkout@v3
|
||||||
- name: 🚀 Run Prettier
|
- name: 🚀 Run Prettier
|
||||||
uses: creyD/prettier_action@v4.1.1
|
uses: creyD/prettier_action@v4.2
|
||||||
with:
|
with:
|
||||||
prettier_options: --write **/*.{json,js,md,yaml}
|
prettier_options: --write **/*.{json,js,md,yaml}
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ 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@v3.0.0
|
- uses: dessant/lock-threads@v4.0.0
|
||||||
with:
|
with:
|
||||||
github-token: ${{ github.token }}
|
github-token: ${{ github.token }}
|
||||||
issue-inactive-days: "30"
|
issue-inactive-days: "30"
|
||||||
|
|||||||
@@ -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.16.1
|
uses: release-drafter/release-drafter@v5.21.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@v4
|
uses: actions/stale@v7
|
||||||
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.4.0
|
uses: actions/checkout@v3
|
||||||
- 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-2022 Franck Nijhof
|
Copyright (c) 2021-2023 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
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: ⤵️ Check out configuration from GitHub
|
- name: ⤵️ Check out configuration from GitHub
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: 🚀 Run Home Assistant Configuration Check
|
- name: 🚀 Run Home Assistant Configuration Check
|
||||||
uses: frenck/action-home-assistant@v1
|
uses: frenck/action-home-assistant@v1
|
||||||
with:
|
with:
|
||||||
@@ -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
|
||||||
|
|
||||||
@@ -130,7 +131,7 @@ jobs:
|
|||||||
version: ["stable", "beta", "dev"]
|
version: ["stable", "beta", "dev"]
|
||||||
steps:
|
steps:
|
||||||
- name: ⤵️ Check out configuration from GitHub
|
- name: ⤵️ Check out configuration from GitHub
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: 🚀 Run Home Assistant Configuration Check
|
- name: 🚀 Run Home Assistant Configuration Check
|
||||||
uses: frenck/action-home-assistant@v1
|
uses: frenck/action-home-assistant@v1
|
||||||
with:
|
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)
|
- [Metbril's :sunglasses: Home Assistant Configuration](https://github.com/metbril/home-assistant-config)
|
||||||
- [ntilley905's Home Assistant Configuration](https://github.com/ntilley905/hass)
|
- [ntilley905's Home Assistant Configuration](https://github.com/ntilley905/hass)
|
||||||
- [robbrad's Home Assistant Configuration](https://github.com/robbrad/HA-Config)
|
- [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
|
Are you using this GitHub Action? Feel free to open up a PR to add your
|
||||||
configuration to this list 😍
|
configuration to this list 😍
|
||||||
@@ -244,7 +246,7 @@ check [the contributor's page][contributors].
|
|||||||
|
|
||||||
MIT License
|
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
|
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
|
||||||
@@ -269,7 +271,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/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
|
[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
@@ -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"
|
||||||
@@ -38,7 +41,7 @@ runs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "::set-output name=path::${path}"
|
echo "path=${path}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: 🏗 Ensure secrets are in place
|
- name: 🏗 Ensure secrets are in place
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -84,7 +87,7 @@ runs:
|
|||||||
version="stable"
|
version="stable"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "::set-output name=version::${version}"
|
echo "version=${version}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
docker pull -q "ghcr.io/home-assistant/home-assistant:${version}"
|
docker pull -q "ghcr.io/home-assistant/home-assistant:${version}"
|
||||||
|
|
||||||
@@ -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 \
|
||||||
|
|||||||
@@ -20,6 +20,16 @@
|
|||||||
"message": 1
|
"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