Skip to content

Trigger sync-remotes on kellerza/hass-addons #67

Trigger sync-remotes on kellerza/hass-addons

Trigger sync-remotes on kellerza/hass-addons #67

name: Trigger sync-remotes on kellerza/hass-addons
on:
workflow_run:
workflows: ["Deploy sunsynk addon to ghcr.io"]
branches: [main]
types:
- completed
workflow_dispatch: {}
push:
paths:
- "hass-addon-mbusd/**"
- ".github/workflows/trigger-hass-addons.yml"
pull_request:
paths:
- "hass-addon-mbusd/**"
- ".github/workflows/trigger-hass-addons.yml"
jobs:
sync-remotes:
runs-on: ubuntu-latest
steps:
- name: Invoke workflow "Sync add-ons from remote repositories"
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.HASS_ADDONS_PERSONAL_TOKEN }}" \
https://api.github.com/repos/kellerza/hass-addons/actions/workflows/sync-remotes.yml/dispatches \
-d '{"ref":"main","inputs":{}}'
# uses: the-actions-org/workflow-dispatch@v4
# with:
# repo: kellerza/hass-addons
# workflow: sync-remotes.yml
# token: ${{ secrets.HASS_ADDONS_PERSONAL_TOKEN }}
# wait-for-completion: false
# ref: main