Skip to content

Commit 7d74796

Browse files
committed
🎉 Migrate addon
0 parents  commit 7d74796

23 files changed

+600
-0
lines changed

.dive-ci.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
rules:
2+
# If the efficiency is measured below X%, mark as failed.
3+
# Expressed as a ratio between 0-1.
4+
lowestEfficiency: 0.95
5+
6+
# If the amount of wasted space is at least X or larger than X, mark as failed.
7+
# Expressed in B, KB, MB, and GB.
8+
#highestWastedBytes: 100MB
9+
10+
# If the amount of wasted space makes up for X% or more of the image, mark as failed.
11+
# Note: the base image layer is NOT included in the total image size.
12+
# Expressed as a ratio between 0-1; fails if the threshold is met or crossed.
13+
highestUserWastedPercent: 0.20

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
groups:
8+
GH actions:
9+
dependency-type: production

.github/workflows/addon-ci.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Addon CI
2+
3+
# yamllint disable-line rule:truthy
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
types:
10+
- opened
11+
- reopened
12+
- synchronize
13+
workflow_dispatch:
14+
15+
jobs:
16+
workflows:
17+
uses: Poeschl-HomeAssistant-Addons/workflows/.github/workflows/addon-ci.yaml@main

.github/workflows/addon-deploy.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Deploy
2+
3+
# yamllint disable-line rule:truthy
4+
on:
5+
release:
6+
types:
7+
- published
8+
workflow_run:
9+
workflows: ["Addon CI"]
10+
branches: [main]
11+
types:
12+
- completed
13+
14+
jobs:
15+
workflows:
16+
uses: Poeschl-HomeAssistant-Addons/workflows/.github/workflows/addon-deploy.yaml@main
17+
permissions:
18+
contents: read
19+
packages: write
20+
secrets:
21+
dispatch_token: ${{ secrets.DISPATCH_TOKEN }}
22+
with:
23+
version: "${{ github.event.release.tag_name }}"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Draft release from new main push
2+
3+
# yamllint disable-line rule:truthy
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
workflows:
11+
uses: Poeschl-HomeAssistant-Addons/workflows/.github/workflows/release-drafter.yaml@main
12+
permissions:
13+
contents: write
14+
pull-requests: read

.github/workflows/labels.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Sync labels
2+
3+
# yamllint disable-line rule:truthy
4+
on:
5+
schedule:
6+
- cron: "0 0 * * SUN"
7+
workflow_dispatch:
8+
9+
jobs:
10+
workflows:
11+
uses: Poeschl-HomeAssistant-Addons/workflows/.github/workflows/labels.yaml@main
12+
permissions:
13+
contents: write
14+
issues: write

.github/workflows/pr-labels.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: PR label
2+
3+
# yamllint disable-line rule:truthy
4+
on:
5+
pull_request_target:
6+
types:
7+
- opened
8+
- labeled
9+
- unlabeled
10+
- synchronize
11+
12+
jobs:
13+
workflows:
14+
uses: Poeschl-HomeAssistant-Addons/workflows/.github/workflows/pr-labels.yaml@main
15+
permissions:
16+
contents: read
17+
pull-requests: write

.github/workflows/pr-title.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: PR title
2+
3+
# yamllint disable-line rule:truthy
4+
on:
5+
pull_request:
6+
types:
7+
- opened
8+
- edited
9+
10+
jobs:
11+
workflows:
12+
uses: Poeschl-HomeAssistant-Addons/workflows/.github/workflows/pr-title.yaml@main
13+
permissions:
14+
contents: read
15+
pull-requests: write

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/data/options.json

.hadolint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ignored:
2+
- DL3006

0 commit comments

Comments
 (0)