From 356964d1ee84d62bc74dab693c06020251f1f720 Mon Sep 17 00:00:00 2001 From: AvaLilac Date: Wed, 18 Mar 2026 13:01:56 -0400 Subject: [PATCH] Update release-please.yml Signed-off-by: AvaLilac --- .github/workflows/release-please.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 2c70096..69f54c9 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -34,6 +34,19 @@ jobs: token: ${{ steps.app-token.outputs.token }} config-file: release-please-config.json + # Notify Stoat webhook immediately after release is created + - name: Notify Stoat + if: steps.rp.outputs.release_created == 'true' + run: | + RELEASE_TAG="${{ steps.rp.outputs.release_tag }}" + RELEASE_NAME="${{ steps.rp.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\"}" + publish-release: name: Publish App needs: release-please @@ -46,7 +59,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - + steps: - name: Checkout uses: actions/checkout@v4 @@ -88,15 +101,3 @@ 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\"}"