diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7f6f9689f..80b403981 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -176,3 +176,17 @@ jobs: uses: pypa/gh-action-pypi-publish@master with: password: ${{ secrets.pypi_password }} + + notify-custopizer-build: + name: 📧 Notify OctoPi-UpToDate + if: github.event_name == 'release' + needs: publish-on-pypi + runs-on: ubuntu-latest + steps: + - name: 🚀 Repository Dispatch + uses: peter-evans/repository-dispatch@v1 + with: + token: ${{ secrets.REPODISPATCH_TOKEN }} + repository: OctoPrint/OctoPi-UpToDate + event-type: octoprint_release + client-payload: '{"version": "${{ github.ref }}"}' diff --git a/.github/workflows/trigger_docs.yml b/.github/workflows/trigger_docs.yml index 492d5ef5b..cb20852fb 100644 --- a/.github/workflows/trigger_docs.yml +++ b/.github/workflows/trigger_docs.yml @@ -14,7 +14,7 @@ jobs: - name: 🚀 Repository Dispatch uses: peter-evans/repository-dispatch@v1 with: - token: ${{ secrets.DOCS_ACCESS_TOKEN }} + token: ${{ secrets.REPODISPATCH_TOKEN }} repository: OctoPrint/docs.octoprint.org event-type: docs client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'