mirror of
https://github.com/RiDDiX/home-assistant-addons.git
synced 2026-07-14 12:20:51 +08:00
chore: update to riddix ownership and improve workflows
This commit is contained in:
29
.github/workflows/ci.yaml
vendored
Normal file
29
.github/workflows/ci.yaml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
runs-on: ubuntu-latest
|
||||
name: Validate Addon Config
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Validate hamh config
|
||||
uses: home-assistant/actions/helpers/addon-info@master
|
||||
with:
|
||||
addon: hamh
|
||||
|
||||
- name: Validate hamh-beta config
|
||||
uses: home-assistant/actions/helpers/addon-info@master
|
||||
with:
|
||||
addon: hamh-beta
|
||||
|
||||
- name: Validate hamh76 config
|
||||
uses: home-assistant/actions/helpers/addon-info@master
|
||||
with:
|
||||
addon: hamh76
|
||||
89
.github/workflows/release-addons.yaml
vendored
89
.github/workflows/release-addons.yaml
vendored
@@ -1,15 +1,31 @@
|
||||
name: Release Home-Assistant-Matter-Hub
|
||||
name: Release Home-Assistant-Matter-Hub
|
||||
|
||||
on:
|
||||
repository_dispatch:
|
||||
event_name: release
|
||||
# client_payload:
|
||||
types: [release]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
project:
|
||||
description: 'Project to release (hamh, hamh-beta)'
|
||||
required: true
|
||||
default: 'hamh'
|
||||
version:
|
||||
description: 'Version to release'
|
||||
required: true
|
||||
channel:
|
||||
description: 'Release channel'
|
||||
required: true
|
||||
default: 'latest'
|
||||
changelogUrl:
|
||||
description: 'URL to changelog file'
|
||||
required: false
|
||||
|
||||
# client_payload from repository_dispatch:
|
||||
# project: "hamh"
|
||||
# channel: "latest" | "beta" | "alpha"
|
||||
# version: "3.0.0-alpha.33"
|
||||
# channel: "latest" | "beta"
|
||||
# version: "3.0.0"
|
||||
# changelogUrl: "https://..."
|
||||
|
||||
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -19,40 +35,73 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Get Version
|
||||
|
||||
- name: Parse Event
|
||||
id: event_parser
|
||||
run: |
|
||||
PROJECT="${{ github.event.client_payload.project }}"
|
||||
CHANNEL="${{ github.event.client_payload.channel }}"
|
||||
# Handle both repository_dispatch and workflow_dispatch
|
||||
if [ "${{ github.event_name }}" = "repository_dispatch" ]; then
|
||||
PROJECT="${{ github.event.client_payload.project }}"
|
||||
CHANNEL="${{ github.event.client_payload.channel }}"
|
||||
VERSION="${{ github.event.client_payload.version }}"
|
||||
CHANGELOG_URL="${{ github.event.client_payload.changelogUrl }}"
|
||||
else
|
||||
PROJECT="${{ github.event.inputs.project }}"
|
||||
CHANNEL="${{ github.event.inputs.channel }}"
|
||||
VERSION="${{ github.event.inputs.version }}"
|
||||
CHANGELOG_URL="${{ github.event.inputs.changelogUrl }}"
|
||||
fi
|
||||
|
||||
# Append channel to project name if not latest
|
||||
if [ "$CHANNEL" != "latest" ]; then
|
||||
PROJECT="$PROJECT-$CHANNEL"
|
||||
fi
|
||||
|
||||
echo "project=$PROJECT" >> "$GITHUB_OUTPUT"
|
||||
echo "channel=$CHANNEL" >> "$GITHUB_OUTPUT"
|
||||
echo "version=${{ github.event.client_payload.version }}" >> "$GITHUB_OUTPUT"
|
||||
echo "changelogUrl=${{ github.event.client_payload.changelogUrl }}" >> "$GITHUB_OUTPUT"
|
||||
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
||||
echo "changelogUrl=$CHANGELOG_URL" >> "$GITHUB_OUTPUT"
|
||||
|
||||
if [ ! -d "$PROJECT" ]; then
|
||||
echo "No Project: $PROJECT"
|
||||
echo "Error: Project directory '$PROJECT' does not exist"
|
||||
exit 1
|
||||
fi
|
||||
- run: |
|
||||
|
||||
echo "Releasing $PROJECT version $VERSION (channel: $CHANNEL)"
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
- name: Copy Changelog
|
||||
|
||||
- name: Download and Update Changelog
|
||||
if: steps.event_parser.outputs.changelogUrl != ''
|
||||
env:
|
||||
CHANGELOG_FILE: ${{steps.event_parser.outputs.project}}/CHANGELOG.md
|
||||
CHANGELOG_FILE: ${{ steps.event_parser.outputs.project }}/CHANGELOG.md
|
||||
run: |
|
||||
curl -L "${{ steps.event_parser.outputs.changelogUrl }}" > $CHANGELOG_FILE
|
||||
git add $CHANGELOG_FILE
|
||||
- name: Apply release version
|
||||
|
||||
- name: Update Version in config.yaml
|
||||
env:
|
||||
CONFIG_FILE: ${{steps.event_parser.outputs.project}}/config.yaml
|
||||
CONFIG_FILE: ${{ steps.event_parser.outputs.project }}/config.yaml
|
||||
run: |
|
||||
yq -i ".version = \"${{ steps.event_parser.outputs.version }}\"" $CONFIG_FILE
|
||||
git add $CONFIG_FILE
|
||||
- name: Publish
|
||||
|
||||
- name: Commit and Push
|
||||
run: |
|
||||
git commit -m "bumb(${{steps.event_parser.outputs.project}}): bumb to version ${{ steps.event_parser.outputs.version }}"
|
||||
git commit -m "release(${{ steps.event_parser.outputs.project }}): ${{ steps.event_parser.outputs.version }}"
|
||||
git push origin main
|
||||
|
||||
- name: Create GitHub Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: ${{ steps.event_parser.outputs.project }}-${{ steps.event_parser.outputs.version }}
|
||||
name: ${{ steps.event_parser.outputs.project }} ${{ steps.event_parser.outputs.version }}
|
||||
body: |
|
||||
Release of ${{ steps.event_parser.outputs.project }} version ${{ steps.event_parser.outputs.version }}
|
||||
|
||||
See the main project for detailed changelog:
|
||||
https://github.com/riddix/home-assistant-matter-hub/releases
|
||||
generate_release_notes: false
|
||||
|
||||
28
README.md
28
README.md
@@ -1,26 +1,10 @@
|
||||
# Home Assistant Addons by t0bst4r
|
||||
# Home Assistant Addons by riddix
|
||||
|
||||
---
|
||||
|
||||
> [!IMPORTANT]
|
||||
> ⚠️ **Project Status: End of Maintenance**
|
||||
>
|
||||
> As of **January 2026**, this project is no longer actively maintained.
|
||||
>
|
||||
> I previously announced a search for a new maintainer, but unfortunately no one has stepped forward
|
||||
> to take over the project. Due to personal time constraints, I am no longer able to continue development or provide support.
|
||||
>
|
||||
> **What this means:**
|
||||
> - ❌ No further feature development
|
||||
> - ❌ No bug fixes or updates
|
||||
> - ❌ No guaranteed support
|
||||
>
|
||||
> The repository will remain available for reference and forking.
|
||||
>
|
||||
> 💡 I would be very happy to see this project continued by the community.
|
||||
> If you plan to fork it and continue development: **may the best fork prevail.**
|
||||
>
|
||||
> Thank you to everyone who used, tested, and contributed to this project ❤️
|
||||
> [!NOTE]
|
||||
> This repository is a fork of the original project by t0bst4r, which has been discontinued.
|
||||
> I have taken over maintenance and will continue development.
|
||||
|
||||
---
|
||||
|
||||
@@ -30,11 +14,11 @@ This repository provides the following addons for Home-Assistant:
|
||||
|
||||
## Installation
|
||||
|
||||
Simple add this repository to your Add On Store in Home-Assistant:
|
||||
Simply add this repository to your Add-On Store in Home-Assistant:
|
||||
|
||||
1. Open the UI of your Home Assistant instance
|
||||
2. Go to `Settings` -> `Add-Ons` -> `Add-On Store`
|
||||
3. Click the three dots in the top-right corner and select `Repositories`
|
||||
4. Paste the repository URL (`https://github.com/t0bst4r/home-assistant-addons`) into the text-field and click "Add"
|
||||
4. Paste the repository URL (`https://github.com/riddix/home-assistant-addons`) into the text-field and click "Add"
|
||||
5. Refresh your Add-On Store and Install the Add-On
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
version: "3.0.1-beta.5"
|
||||
image: ghcr.io/t0bst4r/home-assistant-matter-hub-addon
|
||||
version: "3.0.1-beta.5"
|
||||
image: ghcr.io/riddix/home-assistant-matter-hub-addon
|
||||
slug: hamh-beta
|
||||
name: Home-Assistant-Matter-Hub (Beta)
|
||||
description: Beta Releases of Home Assistant Matter Hub
|
||||
url: https://github.com/t0bst4r/home-assistant-matter-hub
|
||||
url: https://github.com/riddix/home-assistant-matter-hub
|
||||
panel_icon: mdi:hub
|
||||
panel_title: Matter Hub (Beta)
|
||||
homeassistant: 2024.1.0
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
version: "3.0.4"
|
||||
image: ghcr.io/t0bst4r/home-assistant-matter-hub-addon
|
||||
version: "3.0.4"
|
||||
image: ghcr.io/riddix/home-assistant-matter-hub-addon
|
||||
slug: hamh
|
||||
name: Home-Assistant-Matter-Hub
|
||||
description: Publish your entities from Home Assistant to any Matter-compatible controller like Alexa, Apple Home or Google Home.
|
||||
url: https://github.com/t0bst4r/home-assistant-matter-hub
|
||||
url: https://github.com/riddix/home-assistant-matter-hub
|
||||
panel_icon: mdi:hub
|
||||
panel_title: Matter Hub
|
||||
homeassistant: 2024.1.0
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
version: "3.0.0-alpha.76"
|
||||
image: ghcr.io/t0bst4r/home-assistant-matter-hub-addon
|
||||
version: "3.0.0-alpha.76"
|
||||
image: ghcr.io/riddix/home-assistant-matter-hub-addon
|
||||
slug: hamh76
|
||||
name: Home-Assistant-Matter-Hub (3.0.0-alpha.76)
|
||||
description: Last stable version which works with Amazon Alexa. Make sure to only enable one of the HAMH addons at once.
|
||||
url: https://github.com/t0bst4r/home-assistant-matter-hub
|
||||
url: https://github.com/riddix/home-assistant-matter-hub
|
||||
panel_icon: mdi:hub
|
||||
panel_title: Matter Hub (v76)
|
||||
homeassistant: 2024.1.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
---
|
||||
name: Addons by t0bst4r
|
||||
url: https://github.com/t0bst4r/home-assistant-addons
|
||||
maintainer: t0bst4r
|
||||
---
|
||||
name: Addons by riddix
|
||||
url: https://github.com/riddix/home-assistant-addons
|
||||
maintainer: riddix
|
||||
|
||||
Reference in New Issue
Block a user