Trigger sync-remotes on kellerza/hass-addons #67
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |