Use it to create and maintain repository with multiple Zigbee2mqtt Home Assistant add-ons.
- Create new empty public Github repository
- Click on the "Actions" tab in the tab bar
- Press the "New workflow" button
- Press the "Skip this and set up a workflow yourself →" link
- Replace the sample code with the following code and replace "addon 1, addon 2" with any addon names that you want to use separated with a comma (example: "Living Room, Bedroom, Garage"):
name: Multiple Zigbee2mqtt Home Assistant add-ons
on:
schedule:
- cron: '*/30 * * * *' # every 30 minutes
workflow_dispatch: # on button click
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: andreypolyak/[email protected]
with:
addon_names: "addon 1, addon 2"
github_token: ${{ github.token }}
- Press the "Start commit" button, then "Commit new file"
- Click on the "Actions" tab in the tab bar once again
- Select the "Multiple Zigbee2mqtt Home Assistant add-ons" workflow from the side panel
- Press the "Run workflow" button and then once again "Run workflow" button
- Wait for workflow run completion
- Add your repository to add-on repositories in Home Assistant Supervisor
This action will automatically run every 30 minutes and check if any updates to the original Zigbee2mqtt are available. If they would be found action will update version in your repository accordingly.
To create new Zigbee2mqtt add-ons after initial setup open your workflow (.github/workflows/main.yml by default) and change the addon_names variable. Don't forget to separate add-on names with a comma.