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
description: Report an issue related to one of the official add-ons.
body:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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