From bb93c62e92701e6b917ccdf3110f49f8a87ba193 Mon Sep 17 00:00:00 2001 From: AvaLilac Date: Wed, 18 Mar 2026 12:58:31 -0400 Subject: [PATCH] Enhance release workflow with Stoat notification Added notification step to inform Stoat about new releases. Signed-off-by: AvaLilac --- .github/workflows/release-please.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index c863b0f..2c70096 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -20,6 +20,8 @@ jobs: runs-on: ubuntu-latest outputs: release_created: ${{ steps.rp.outputs.release_created }} + release_tag: ${{ steps.rp.outputs.release_tag }} + release_name: ${{ steps.rp.outputs.release_name }} steps: - id: app-token uses: actions/create-github-app-token@v2 @@ -86,3 +88,15 @@ jobs: env: PLATFORM: ${{ matrix.os }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Notify Stoat + if: needs.release-please.outputs.release_created == 'true' + run: | + RELEASE_TAG="${{ needs.release-please.outputs.release_tag }}" + RELEASE_NAME="${{ needs.release-please.outputs.release_name }}" + URL="https://github.com/${{ github.repository }}/releases/tag/${RELEASE_TAG}" + MSG="🚀 New release: $RELEASE_NAME ($RELEASE_TAG) - $URL" + + curl -X POST "https://stoat.chat/api/webhooks/01KM0VR768BP5W0CAB54ASK2QP/ruEjyZDLwgOip8ClH_oURUPu3LehRz_7yEXb1VVdO5ZuX2d4Pd8-z7aN0aQWmbrj" \ + -H "Content-Type: application/json" \ + -d "{\"content\":\"$MSG\"}"