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:
Stefan Agner
2022-04-11 09:00:11 +02:00
committed by GitHub
parent 4cd2e8846a
commit c7a5f7c0aa
55 changed files with 96 additions and 47 deletions

View File

@@ -1,3 +1,5 @@
---
# yamllint disable rule:line-length
name: Bug Report Form name: Bug Report Form
description: Report an issue related to one of the official add-ons. description: Report an issue related to one of the official add-ons.
body: body:

View File

@@ -1,3 +1,5 @@
---
# yamllint disable rule:line-length
blank_issues_enabled: false blank_issues_enabled: false
contact_links: contact_links:
- name: Report a bug with the UI, Frontend or Lovelace - 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. about: Please use our Community Forum for making feature requests.
- name: I'm unsure where to go - name: I'm unsure where to go
url: https://www.home-assistant.io/join-chat 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!

View File

@@ -1,8 +1,9 @@
---
version: 2 version: 2
updates: updates:
- package-ecosystem: "github-actions" - package-ecosystem: "github-actions"
directory: "/" directory: "/"
schedule: schedule:
interval: daily interval: weekly
time: "06:00" time: "06:00"
open-pull-requests-limit: 10 open-pull-requests-limit: 10

13
.github/move.yml vendored
View File

@@ -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

View File

@@ -1,3 +1,5 @@
---
# yamllint disable rule:line-length rule:truthy
name: Build add-on name: Build add-on
env: env:
@@ -103,14 +105,6 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} 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 - name: Build ${{ matrix.addon }} add-on
if: steps.check.outputs.build_arch == 'true' if: steps.check.outputs.build_arch == 'true'
uses: home-assistant/builder@2022.03.1 uses: home-assistant/builder@2022.03.1

View File

@@ -1,3 +1,5 @@
---
# yamllint disable rule:truthy
name: Lint name: Lint
env: env:
@@ -29,17 +31,15 @@ jobs:
hadolint/hadolint:${{ env.HADOLINT_VERSION }} < "$dockerfile" hadolint/hadolint:${{ env.HADOLINT_VERSION }} < "$dockerfile"
done done
jq: yamllint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: JQ name: YAMLLint
steps: steps:
- name: Check out the repository - name: Check out the repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Run linter - name: Run YAMLLint
run: | uses: frenck/action-yamllint@v1.1
shopt -s globstar
cat **/*.json | jq '.'
shellcheck: shellcheck:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -49,4 +49,4 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Run linter - name: Run linter
uses: ludeeus/action-shellcheck@1.1.0 uses: ludeeus/action-shellcheck@1.1.0

View File

@@ -1,3 +1,5 @@
---
# yamllint disable rule:truthy
name: Stale name: Stale
on: on:
@@ -20,6 +22,6 @@ jobs:
stale-issue-label: "stale" stale-issue-label: "stale"
exempt-issue-labels: "pinned,security,Help wanted" exempt-issue-labels: "pinned,security,Help wanted"
stale-issue-message: > stale-issue-message: >
This issue has been automatically marked as stale because it has not had This issue has been automatically marked as stale because it has
recent activity. It will be closed if no further activity occurs. Thank you not had recent activity. It will be closed if no further activity
for your contributions. occurs. Thank you for your contributions.

View File

@@ -1,3 +1,4 @@
---
ignored: ignored:
- DL3003 - DL3003
- DL3006 - DL3006

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
amd64: ghcr.io/home-assistant/amd64-base-debian:bullseye amd64: ghcr.io/home-assistant/amd64-base-debian:bullseye
armhf: ghcr.io/home-assistant/armhf-base-debian:bullseye armhf: ghcr.io/home-assistant/armhf-base-debian:bullseye

View File

@@ -1,3 +1,4 @@
---
version: 1.2.0 version: 1.2.0
slug: ada slug: ada
name: Hey Ada! name: Hey Ada!

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
aarch64: ghcr.io/home-assistant/aarch64-base-debian:buster aarch64: ghcr.io/home-assistant/aarch64-base-debian:buster
amd64: ghcr.io/home-assistant/amd64-base-debian:buster amd64: ghcr.io/home-assistant/amd64-base-debian:buster

View File

@@ -1,3 +1,4 @@
---
version: 2.0.1 version: 2.0.1
slug: almond slug: almond
name: Almond name: Almond

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
aarch64: ghcr.io/home-assistant/aarch64-base:3.14 aarch64: ghcr.io/home-assistant/aarch64-base:3.14
amd64: ghcr.io/home-assistant/amd64-base:3.14 amd64: ghcr.io/home-assistant/amd64-base:3.14

View File

@@ -1,3 +1,4 @@
---
version: "3.0" version: "3.0"
slug: cec_scan slug: cec_scan
name: CEC Scanner name: CEC Scanner

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
aarch64: ghcr.io/home-assistant/aarch64-homeassistant-base:2022.02.0 aarch64: ghcr.io/home-assistant/aarch64-homeassistant-base:2022.02.0
amd64: ghcr.io/home-assistant/amd64-homeassistant-base:2022.02.0 amd64: ghcr.io/home-assistant/amd64-homeassistant-base:2022.02.0

View File

@@ -1,3 +1,4 @@
---
version: 3.10.0 version: 3.10.0
slug: check_config slug: check_config
name: Check Home Assistant configuration name: Check Home Assistant configuration

View File

@@ -1,4 +1,7 @@
---
configuration: configuration:
version: version:
name: 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

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
aarch64: ghcr.io/home-assistant/aarch64-base:3.14 aarch64: ghcr.io/home-assistant/aarch64-base:3.14
amd64: ghcr.io/home-assistant/amd64-base:3.14 amd64: ghcr.io/home-assistant/amd64-base:3.14

View File

@@ -1,3 +1,4 @@
---
version: 5.3.3 version: 5.3.3
slug: configurator slug: configurator
name: File editor name: File editor

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
aarch64: ghcr.io/home-assistant/aarch64-base-debian:buster aarch64: ghcr.io/home-assistant/aarch64-base-debian:buster
amd64: ghcr.io/home-assistant/amd64-base-debian:buster amd64: ghcr.io/home-assistant/amd64-base-debian:buster

View File

@@ -1,7 +1,9 @@
---
version: 6.12.0 version: 6.12.0
slug: deconz slug: deconz
name: 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 url: https://github.com/home-assistant/hassio-addons/tree/master/deconz
apparmor: false apparmor: false
arch: arch:

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
aarch64: ghcr.io/home-assistant/aarch64-base:3.14 aarch64: ghcr.io/home-assistant/aarch64-base:3.14
amd64: ghcr.io/home-assistant/amd64-base:3.14 amd64: ghcr.io/home-assistant/amd64-base:3.14

View File

@@ -1,3 +1,4 @@
---
version: "1.2" version: "1.2"
slug: dhcp_server slug: dhcp_server
name: DHCP server name: DHCP server

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
aarch64: ghcr.io/home-assistant/aarch64-base:3.13 aarch64: ghcr.io/home-assistant/aarch64-base:3.13
amd64: ghcr.io/home-assistant/amd64-base:3.13 amd64: ghcr.io/home-assistant/amd64-base:3.13

View File

@@ -1,3 +1,4 @@
---
version: 1.4.4 version: 1.4.4
slug: dnsmasq slug: dnsmasq
name: Dnsmasq name: Dnsmasq

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
aarch64: ghcr.io/home-assistant/aarch64-base:3.14 aarch64: ghcr.io/home-assistant/aarch64-base:3.14
amd64: ghcr.io/home-assistant/amd64-base:3.14 amd64: ghcr.io/home-assistant/amd64-base:3.14

View File

@@ -1,7 +1,9 @@
---
version: 1.14.0 version: 1.14.0
slug: duckdns slug: duckdns
name: Duck DNS 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 url: https://github.com/home-assistant/hassio-addons/tree/master/duckdns
arch: arch:
- armhf - armhf

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
aarch64: ghcr.io/home-assistant/aarch64-base:3.13 aarch64: ghcr.io/home-assistant/aarch64-base:3.13
amd64: ghcr.io/home-assistant/amd64-base:3.13 amd64: ghcr.io/home-assistant/amd64-base:3.13

View File

@@ -1,3 +1,4 @@
---
version: 7.13.1 version: 7.13.1
slug: git_pull slug: git_pull
name: Git pull name: Git pull

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
amd64: ghcr.io/home-assistant/amd64-base-debian:buster amd64: ghcr.io/home-assistant/amd64-base-debian:buster
armhf: ghcr.io/home-assistant/armhf-base-debian:buster armhf: ghcr.io/home-assistant/armhf-base-debian:buster

View File

@@ -1,8 +1,10 @@
---
version: 2.5.0 version: 2.5.0
slug: google_assistant slug: google_assistant
name: Google Assistant SDK name: Google Assistant SDK
description: A virtual personal assistant developed by Google 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 advanced: true
arch: arch:
- armhf - armhf

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
armv7: ghcr.io/home-assistant/armv7-base-debian:bullseye armv7: ghcr.io/home-assistant/armv7-base-debian:bullseye
i386: ghcr.io/home-assistant/i386-base-debian:bullseye i386: ghcr.io/home-assistant/i386-base-debian:bullseye

View File

@@ -1,3 +1,4 @@
---
version: 99.0.5 version: 99.0.5
slug: homematic slug: homematic
name: HomeMatic CCU name: HomeMatic CCU

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
aarch64: ghcr.io/home-assistant/aarch64-base-python:3.9-alpine3.14 aarch64: ghcr.io/home-assistant/aarch64-base-python:3.9-alpine3.14
amd64: ghcr.io/home-assistant/amd64-base-python:3.9-alpine3.14 amd64: ghcr.io/home-assistant/amd64-base-python:3.9-alpine3.14

View File

@@ -1,3 +1,4 @@
---
version: 4.12.0 version: 4.12.0
slug: letsencrypt slug: letsencrypt
name: Let's Encrypt name: Let's Encrypt
@@ -66,7 +67,11 @@ schema:
ovh_consumer_key: str? ovh_consumer_key: str?
ovh_endpoint: str? ovh_endpoint: str?
propagation_seconds: int(60,3600)? 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_algorithm: str?
rfc2136_name: str? rfc2136_name: str?
rfc2136_port: str? rfc2136_port: str?

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
aarch64: ghcr.io/home-assistant/aarch64-base:3.12 aarch64: ghcr.io/home-assistant/aarch64-base:3.12
amd64: ghcr.io/home-assistant/amd64-base:3.12 amd64: ghcr.io/home-assistant/amd64-base:3.12

View File

@@ -1,3 +1,4 @@
---
version: 2.4.0 version: 2.4.0
slug: mariadb slug: mariadb
name: MariaDB name: MariaDB
@@ -33,8 +34,9 @@ schema:
rights: rights:
- database: str - database: str
privileges: privileges:
- list(ALTER|CREATE|CREATE ROUTINE|CREATE TEMPORARY TABLES|CREATE VIEW|DELETE|DELETE - "list(ALTER|CREATE|CREATE ROUTINE|CREATE TEMPORARY TABLES|\
HISTORY|DROP|EVENT|GRANT OPTION|INDEX|INSERT|LOCK TABLES|SELECT|SHOW VIEW|TRIGGER|UPDATE)? CREATE VIEW|DELETE|DELETE HISTORY|DROP|EVENT|GRANT OPTION|INDEX|\
INSERT|LOCK TABLES|SELECT|SHOW VIEW|TRIGGER|UPDATE)?"
username: str username: str
services: services:
- mysql:provide - mysql:provide

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
aarch64: ghcr.io/home-assistant/aarch64-base:3.13 aarch64: ghcr.io/home-assistant/aarch64-base:3.13
amd64: ghcr.io/home-assistant/amd64-base:3.13 amd64: ghcr.io/home-assistant/amd64-base:3.13

View File

@@ -1,3 +1,4 @@
---
version: 6.0.1 version: 6.0.1
slug: mosquitto slug: mosquitto
name: Mosquitto broker name: Mosquitto broker

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
aarch64: ghcr.io/home-assistant/aarch64-base:3.14 aarch64: ghcr.io/home-assistant/aarch64-base:3.14
amd64: ghcr.io/home-assistant/amd64-base:3.14 amd64: ghcr.io/home-assistant/amd64-base:3.14

View File

@@ -1,3 +1,4 @@
---
version: 3.1.1 version: 3.1.1
hassio_api: true hassio_api: true
slug: nginx_proxy slug: nginx_proxy

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
aarch64: ghcr.io/home-assistant/aarch64-base:3.14 aarch64: ghcr.io/home-assistant/aarch64-base:3.14
amd64: ghcr.io/home-assistant/amd64-base:3.14 amd64: ghcr.io/home-assistant/amd64-base:3.14

View File

@@ -1,3 +1,4 @@
---
version: "2.2" version: "2.2"
slug: rpc_shutdown slug: rpc_shutdown
name: RPC Shutdown name: RPC Shutdown

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
aarch64: ghcr.io/home-assistant/aarch64-base:3.13 aarch64: ghcr.io/home-assistant/aarch64-base:3.13
amd64: ghcr.io/home-assistant/amd64-base:3.13 amd64: ghcr.io/home-assistant/amd64-base:3.13

View File

@@ -1,3 +1,4 @@
---
version: 9.5.1 version: 9.5.1
slug: samba slug: samba
name: Samba share name: Samba share

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
aarch64: ghcr.io/home-assistant/aarch64-base:3.14 aarch64: ghcr.io/home-assistant/aarch64-base:3.14
amd64: ghcr.io/home-assistant/amd64-base:3.14 amd64: ghcr.io/home-assistant/amd64-base:3.14

View File

@@ -1,3 +1,4 @@
---
version: 9.3.0 version: 9.3.0
slug: ssh slug: ssh
name: Terminal & SSH name: Terminal & SSH

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
aarch64: ghcr.io/home-assistant/aarch64-base:3.13 aarch64: ghcr.io/home-assistant/aarch64-base:3.13
amd64: ghcr.io/home-assistant/amd64-base:3.13 amd64: ghcr.io/home-assistant/amd64-base:3.13

View File

@@ -1,3 +1,4 @@
---
version: 2.1.0 version: 2.1.0
slug: tellstick slug: tellstick
name: TellStick name: TellStick
@@ -30,9 +31,12 @@ schema:
fade: str? fade: str?
house: str? house: str?
id: int(1,) 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 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? unit: str?
startup: system startup: system
stdin: true stdin: true

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
aarch64: ghcr.io/home-assistant/aarch64-base:3.13 aarch64: ghcr.io/home-assistant/aarch64-base:3.13
amd64: ghcr.io/home-assistant/amd64-base:3.13 amd64: ghcr.io/home-assistant/amd64-base:3.13

View File

@@ -1,3 +1,4 @@
---
version: 0.1.3 version: 0.1.3
slug: vlc slug: vlc
name: VLC name: VLC

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
aarch64: ghcr.io/home-assistant/aarch64-base:3.11 aarch64: ghcr.io/home-assistant/aarch64-base:3.11
amd64: ghcr.io/home-assistant/amd64-base:3.11 amd64: ghcr.io/home-assistant/amd64-base:3.11

View File

@@ -1,3 +1,4 @@
---
version: 0.9.1 version: 0.9.1
slug: zwave slug: zwave
name: OpenZWave name: OpenZWave

View File

@@ -1,3 +1,4 @@
---
build_from: build_from:
aarch64: ghcr.io/home-assistant/aarch64-base:3.13 aarch64: ghcr.io/home-assistant/aarch64-base:3.13
amd64: ghcr.io/home-assistant/amd64-base:3.13 amd64: ghcr.io/home-assistant/amd64-base:3.13

View File

@@ -1,3 +1,4 @@
---
version: 0.1.55 version: 0.1.55
slug: zwave_js slug: zwave_js
name: Z-Wave JS name: Z-Wave JS