Skip to content

A live bird collage card for your Home Assistant dashboard.

HACS validation workflow + My-link install badge (#31)

Adam Oberley22cd17c33254
diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml
new file mode 100644
index 00000000..6ec28fca
--- /dev/null
+++ b/.github/workflows/validate.yml
@@ -0,0 +1,22 @@
+# HACS validation - the same checks the default-store inclusion runs.
+# Required to pass (no errors, no ignores) before submitting to
+# hacs/default; the schedule keeps catching regressions after.
+name: Validate
+
+on:
+ push:
+ branches: [HABirdDashboard]
+ pull_request:
+ schedule:
+ - cron: "0 4 * * 1"
+ workflow_dispatch:
+
+jobs:
+ hacs:
+ name: HACS validation
+ runs-on: ubuntu-latest
+ steps:
+ - name: HACS Action
+ uses: hacs/action@main
+ with:
+ category: plugin
diff --git a/README.md b/README.md
index f52ee0c4..c2bb232f 100644
--- a/README.md
+++ b/README.md
@@ -158,7 +158,12 @@ window onto that data.
## Step 3 — Install the card
-**With HACS (recommended):**
+**With HACS (recommended):** click this to open the repository directly in
+your HACS:
+
+[![Open your Home Assistant instance and open this repository inside HACS.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=adamoberley&repository=HABirdDashboard&category=plugin)
+
+Or by hand:
1. In HACS: **⋮ menu (top-right) → Custom repositories**, add
`https://github.com/adamoberley/HABirdDashboard` with type **Dashboard**.