diff --git a/.github/workflows/repository-updater.yaml b/.github/workflows/repository-updater.yaml new file mode 100644 index 0000000..e8affd3 --- /dev/null +++ b/.github/workflows/repository-updater.yaml @@ -0,0 +1,25 @@ +--- +name: Repository Updater + +# yamllint disable-line rule:truthy +on: + repository_dispatch: + types: ["update"] + +jobs: + publish: + name: Publish add-on update + runs-on: ubuntu-latest + steps: + - name: 🔂 Wait for other runs to complete + uses: softprops/turnstyle@v1 + with: + continue-after-seconds: 1200 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: 🚀 Run Repository Updater + uses: hassio-addons/repository-updater@v1.2.2 + with: + addon: ${{ github.event.client_payload.addon }} + repository: ${{ github.repository }} + token: ${{ secrets.UPDATER_TOKEN }}