mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 05:04:21 +01:00
Improve GitHub action (#2364)
* Add YAML linter * Drop GitHub registry login as its not required at this point * Add YAML document start marker * Fix YAMLlint issues * Fix YAMLlint issues in .github yaml files * Fix YAMLlint issue in .github/dependabot.yml * Remove .github/move.yml * Set dependabot to weekly Co-authored-by: Joakim Sørensen <hi@ludeeus.dev> * Use YAML strip option where appropriate * Fix multiline string Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
This commit is contained in:
2
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
2
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@@ -1,3 +1,5 @@
|
||||
---
|
||||
# yamllint disable rule:line-length
|
||||
name: Bug Report Form
|
||||
description: Report an issue related to one of the official add-ons.
|
||||
body:
|
||||
|
||||
4
.github/ISSUE_TEMPLATE/config.yml
vendored
4
.github/ISSUE_TEMPLATE/config.yml
vendored
@@ -1,3 +1,5 @@
|
||||
---
|
||||
# yamllint disable rule:line-length
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Report a bug with the UI, Frontend or Lovelace
|
||||
@@ -17,4 +19,4 @@ contact_links:
|
||||
about: Please use our Community Forum for making feature requests.
|
||||
- name: I'm unsure where to go
|
||||
url: https://www.home-assistant.io/join-chat
|
||||
about: If you are unsure where to go, then joining our chat is recommended; Just ask!
|
||||
about: If you are unsure where to go, then joining our chat is recommended; Just ask!
|
||||
|
||||
13
.github/dependabot.yml
vendored
13
.github/dependabot.yml
vendored
@@ -1,8 +1,9 @@
|
||||
---
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: daily
|
||||
time: "06:00"
|
||||
open-pull-requests-limit: 10
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: weekly
|
||||
time: "06:00"
|
||||
open-pull-requests-limit: 10
|
||||
|
||||
13
.github/move.yml
vendored
13
.github/move.yml
vendored
@@ -1,13 +0,0 @@
|
||||
# Configuration for move-issues - https://github.com/dessant/move-issues
|
||||
|
||||
# Delete the command comment. Ignored when the comment also contains other content
|
||||
deleteCommand: true
|
||||
# Close the source issue after moving
|
||||
closeSourceIssue: true
|
||||
# Lock the source issue after moving
|
||||
lockSourceIssue: false
|
||||
# Set custom aliases for targets
|
||||
# aliases:
|
||||
# r: repo
|
||||
# or: owner/repo
|
||||
|
||||
10
.github/workflows/builder.yml
vendored
10
.github/workflows/builder.yml
vendored
@@ -1,3 +1,5 @@
|
||||
---
|
||||
# yamllint disable rule:line-length rule:truthy
|
||||
name: Build add-on
|
||||
|
||||
env:
|
||||
@@ -103,14 +105,6 @@ jobs:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
if: env.BUILD_ARGS == '--docker-hub-check'
|
||||
uses: docker/login-action@v1.14.1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ secrets.GIT_USER }}
|
||||
password: ${{ secrets.GIT_TOKEN }}
|
||||
|
||||
- name: Build ${{ matrix.addon }} add-on
|
||||
if: steps.check.outputs.build_arch == 'true'
|
||||
uses: home-assistant/builder@2022.03.1
|
||||
|
||||
14
.github/workflows/lint.yml
vendored
14
.github/workflows/lint.yml
vendored
@@ -1,3 +1,5 @@
|
||||
---
|
||||
# yamllint disable rule:truthy
|
||||
name: Lint
|
||||
|
||||
env:
|
||||
@@ -29,17 +31,15 @@ jobs:
|
||||
hadolint/hadolint:${{ env.HADOLINT_VERSION }} < "$dockerfile"
|
||||
done
|
||||
|
||||
jq:
|
||||
yamllint:
|
||||
runs-on: ubuntu-latest
|
||||
name: JQ
|
||||
name: YAMLLint
|
||||
steps:
|
||||
- name: Check out the repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Run linter
|
||||
run: |
|
||||
shopt -s globstar
|
||||
cat **/*.json | jq '.'
|
||||
- name: Run YAMLLint
|
||||
uses: frenck/action-yamllint@v1.1
|
||||
|
||||
shellcheck:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -49,4 +49,4 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Run linter
|
||||
uses: ludeeus/action-shellcheck@1.1.0
|
||||
uses: ludeeus/action-shellcheck@1.1.0
|
||||
|
||||
8
.github/workflows/stale.yml
vendored
8
.github/workflows/stale.yml
vendored
@@ -1,3 +1,5 @@
|
||||
---
|
||||
# yamllint disable rule:truthy
|
||||
name: Stale
|
||||
|
||||
on:
|
||||
@@ -20,6 +22,6 @@ jobs:
|
||||
stale-issue-label: "stale"
|
||||
exempt-issue-labels: "pinned,security,Help wanted"
|
||||
stale-issue-message: >
|
||||
This issue has been automatically marked as stale because it has not had
|
||||
recent activity. It will be closed if no further activity occurs. Thank you
|
||||
for your contributions.
|
||||
This issue has been automatically marked as stale because it has
|
||||
not had recent activity. It will be closed if no further activity
|
||||
occurs. Thank you for your contributions.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
ignored:
|
||||
- DL3003
|
||||
- DL3006
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
amd64: ghcr.io/home-assistant/amd64-base-debian:bullseye
|
||||
armhf: ghcr.io/home-assistant/armhf-base-debian:bullseye
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: 1.2.0
|
||||
slug: ada
|
||||
name: Hey Ada!
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-base-debian:buster
|
||||
amd64: ghcr.io/home-assistant/amd64-base-debian:buster
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: 2.0.1
|
||||
slug: almond
|
||||
name: Almond
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-base:3.14
|
||||
amd64: ghcr.io/home-assistant/amd64-base:3.14
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: "3.0"
|
||||
slug: cec_scan
|
||||
name: CEC Scanner
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-homeassistant-base:2022.02.0
|
||||
amd64: ghcr.io/home-assistant/amd64-homeassistant-base:2022.02.0
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: 3.10.0
|
||||
slug: check_config
|
||||
name: Check Home Assistant configuration
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
---
|
||||
configuration:
|
||||
version:
|
||||
name: Version
|
||||
description: The version of Home Assistant to check against, you can use `stable` , `beta`, `dev` or a specific version
|
||||
description: >-
|
||||
The version of Home Assistant to check against, you can use `stable`,
|
||||
`beta`, `dev` or a specific version
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-base:3.14
|
||||
amd64: ghcr.io/home-assistant/amd64-base:3.14
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: 5.3.3
|
||||
slug: configurator
|
||||
name: File editor
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-base-debian:buster
|
||||
amd64: ghcr.io/home-assistant/amd64-base-debian:buster
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
---
|
||||
version: 6.12.0
|
||||
slug: deconz
|
||||
name: deCONZ
|
||||
description: Control a Zigbee network with ConBee or RaspBee by Dresden Elektronik
|
||||
description: >-
|
||||
Control a Zigbee network with ConBee or RaspBee by Dresden Elektronik.
|
||||
url: https://github.com/home-assistant/hassio-addons/tree/master/deconz
|
||||
apparmor: false
|
||||
arch:
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-base:3.14
|
||||
amd64: ghcr.io/home-assistant/amd64-base:3.14
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: "1.2"
|
||||
slug: dhcp_server
|
||||
name: DHCP server
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-base:3.13
|
||||
amd64: ghcr.io/home-assistant/amd64-base:3.13
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: 1.4.4
|
||||
slug: dnsmasq
|
||||
name: Dnsmasq
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-base:3.14
|
||||
amd64: ghcr.io/home-assistant/amd64-base:3.14
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
---
|
||||
version: 1.14.0
|
||||
slug: duckdns
|
||||
name: Duck DNS
|
||||
description: Free Dynamic DNS (DynDNS or DDNS) service with Let's Encrypt support
|
||||
description: >-
|
||||
Free Dynamic DNS (DynDNS or DDNS) service with Let's Encrypt support
|
||||
url: https://github.com/home-assistant/hassio-addons/tree/master/duckdns
|
||||
arch:
|
||||
- armhf
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-base:3.13
|
||||
amd64: ghcr.io/home-assistant/amd64-base:3.13
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: 7.13.1
|
||||
slug: git_pull
|
||||
name: Git pull
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
amd64: ghcr.io/home-assistant/amd64-base-debian:buster
|
||||
armhf: ghcr.io/home-assistant/armhf-base-debian:buster
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
---
|
||||
version: 2.5.0
|
||||
slug: google_assistant
|
||||
name: Google Assistant SDK
|
||||
description: A virtual personal assistant developed by Google
|
||||
url: https://github.com/home-assistant/hassio-addons/tree/master/google_assistant
|
||||
url: >-
|
||||
https://github.com/home-assistant/hassio-addons/tree/master/google_assistant
|
||||
advanced: true
|
||||
arch:
|
||||
- armhf
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
armv7: ghcr.io/home-assistant/armv7-base-debian:bullseye
|
||||
i386: ghcr.io/home-assistant/i386-base-debian:bullseye
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: 99.0.5
|
||||
slug: homematic
|
||||
name: HomeMatic CCU
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-base-python:3.9-alpine3.14
|
||||
amd64: ghcr.io/home-assistant/amd64-base-python:3.9-alpine3.14
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: 4.12.0
|
||||
slug: letsencrypt
|
||||
name: Let's Encrypt
|
||||
@@ -66,7 +67,11 @@ schema:
|
||||
ovh_consumer_key: str?
|
||||
ovh_endpoint: str?
|
||||
propagation_seconds: int(60,3600)?
|
||||
provider: list(dns-cloudflare|dns-cloudxns|dns-digitalocean|dns-directadmin|dns-dnsimple|dns-dnsmadeeasy|dns-gehirn|dns-google|dns-linode|dns-luadns|dns-njalla|dns-nsone|dns-ovh|dns-rfc2136|dns-route53|dns-sakuracloud|dns-netcup|dns-gandi|dns-transip)?
|
||||
provider: "list(dns-cloudflare|dns-cloudxns|dns-digitalocean|\
|
||||
dns-directadmin|dns-dnsimple|dns-dnsmadeeasy|dns-gehirn|\
|
||||
dns-google|dns-linode|dns-luadns|dns-njalla|dns-nsone|dns-ovh|\
|
||||
dns-rfc2136|dns-route53|dns-sakuracloud|dns-netcup|dns-gandi|\
|
||||
dns-transip)?"
|
||||
rfc2136_algorithm: str?
|
||||
rfc2136_name: str?
|
||||
rfc2136_port: str?
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-base:3.12
|
||||
amd64: ghcr.io/home-assistant/amd64-base:3.12
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: 2.4.0
|
||||
slug: mariadb
|
||||
name: MariaDB
|
||||
@@ -33,8 +34,9 @@ schema:
|
||||
rights:
|
||||
- database: str
|
||||
privileges:
|
||||
- list(ALTER|CREATE|CREATE ROUTINE|CREATE TEMPORARY TABLES|CREATE VIEW|DELETE|DELETE
|
||||
HISTORY|DROP|EVENT|GRANT OPTION|INDEX|INSERT|LOCK TABLES|SELECT|SHOW VIEW|TRIGGER|UPDATE)?
|
||||
- "list(ALTER|CREATE|CREATE ROUTINE|CREATE TEMPORARY TABLES|\
|
||||
CREATE VIEW|DELETE|DELETE HISTORY|DROP|EVENT|GRANT OPTION|INDEX|\
|
||||
INSERT|LOCK TABLES|SELECT|SHOW VIEW|TRIGGER|UPDATE)?"
|
||||
username: str
|
||||
services:
|
||||
- mysql:provide
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-base:3.13
|
||||
amd64: ghcr.io/home-assistant/amd64-base:3.13
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: 6.0.1
|
||||
slug: mosquitto
|
||||
name: Mosquitto broker
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-base:3.14
|
||||
amd64: ghcr.io/home-assistant/amd64-base:3.14
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: 3.1.1
|
||||
hassio_api: true
|
||||
slug: nginx_proxy
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-base:3.14
|
||||
amd64: ghcr.io/home-assistant/amd64-base:3.14
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: "2.2"
|
||||
slug: rpc_shutdown
|
||||
name: RPC Shutdown
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-base:3.13
|
||||
amd64: ghcr.io/home-assistant/amd64-base:3.13
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: 9.5.1
|
||||
slug: samba
|
||||
name: Samba share
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-base:3.14
|
||||
amd64: ghcr.io/home-assistant/amd64-base:3.14
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: 9.3.0
|
||||
slug: ssh
|
||||
name: Terminal & SSH
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-base:3.13
|
||||
amd64: ghcr.io/home-assistant/amd64-base:3.13
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: 2.1.0
|
||||
slug: tellstick
|
||||
name: TellStick
|
||||
@@ -30,9 +31,12 @@ schema:
|
||||
fade: str?
|
||||
house: str?
|
||||
id: int(1,)
|
||||
model: match(codeswitch|bell|selflearning-switch|selflearning-dimmer|selflearning|ecosavers|kp100|temperaturehumidity|temperature)?
|
||||
model: "match(codeswitch|bell|selflearning-switch|selflearning-dimmer|\
|
||||
selflearning|ecosavers|kp100|temperaturehumidity|temperature)?"
|
||||
name: str
|
||||
protocol: match(arctech|brateck|comen|everflourish|fineoffset|fuhaote|hasta|ikea|kangtai|mandolyn|oregon|risingsun|sartano|silvanchip|upm|waveman|x10|yidong)
|
||||
protocol: "match(arctech|brateck|comen|everflourish|fineoffset|fuhaote|\
|
||||
hasta|ikea|kangtai|mandolyn|oregon|risingsun|sartano|\
|
||||
silvanchip|upm|waveman|x10|yidong)"
|
||||
unit: str?
|
||||
startup: system
|
||||
stdin: true
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-base:3.13
|
||||
amd64: ghcr.io/home-assistant/amd64-base:3.13
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: 0.1.3
|
||||
slug: vlc
|
||||
name: VLC
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-base:3.11
|
||||
amd64: ghcr.io/home-assistant/amd64-base:3.11
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: 0.9.1
|
||||
slug: zwave
|
||||
name: OpenZWave
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-base:3.13
|
||||
amd64: ghcr.io/home-assistant/amd64-base:3.13
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
version: 0.1.55
|
||||
slug: zwave_js
|
||||
name: Z-Wave JS
|
||||
|
||||
Reference in New Issue
Block a user