From b57faa2c59865fea15a879c9a9304271067d0020 Mon Sep 17 00:00:00 2001 From: "stoat-tofu[bot]" <242700035+stoat-tofu[bot]@users.noreply.github.com> Date: Wed, 18 Feb 2026 20:28:00 +0000 Subject: [PATCH] chore: modify .github/workflows/release-webhook.yml --- .github/workflows/release-webhook.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-webhook.yml b/.github/workflows/release-webhook.yml index 58a1d41..46504b1 100644 --- a/.github/workflows/release-webhook.yml +++ b/.github/workflows/release-webhook.yml @@ -12,8 +12,12 @@ jobs: steps: - name: Send release notification webhook + env: + TAG_NAME: ${{ github.event.release.tag_name }} + REPOSITORY: ${{ github.repository }} + WEBHOOK_URL: ${{ secrets.STOAT_WEBHOOK_UPDATES_URL }} run: | - RELEASE_URL="https://github.com/${{ github.repository }}/releases/tag/${{ github.event.release.tag_name }}" - curl -X POST "${{ secrets.STOAT_WEBHOOK_UPDATES_URL }}" \ + RELEASE_URL="https://github.com/${REPOSITORY}/releases/tag/${TAG_NAME}" + curl -X POST "$WEBHOOK_URL" \ -H "Content-Type: application/json" \ - -d "{\"content\": \"$RELEASE_URL\"}" + -d "{\"content\": \"$RELEASE_URL\"}" \ No newline at end of file