From 127e7006f1c0fa1d1c4524fb17c27a9a6381cb2f Mon Sep 17 00:00:00 2001 From: James Gebbie-Rayet Date: Tue, 25 Aug 2026 22:52:37 +0100 Subject: [PATCH 1/4] Delete zulip-notify.yaml --- .github/workflows/zulip-notify.yaml | 33 ----------------------------- 1 file changed, 33 deletions(-) delete mode 100644 .github/workflows/zulip-notify.yaml diff --git a/.github/workflows/zulip-notify.yaml b/.github/workflows/zulip-notify.yaml deleted file mode 100644 index 98ccd51..0000000 --- a/.github/workflows/zulip-notify.yaml +++ /dev/null @@ -1,33 +0,0 @@ -name: Notify Zulip - -on: - release: - types: [released] - -jobs: - notify: - runs-on: ubuntu-24.04 - steps: - - name: Post announcement to Zulip - env: - ZULIP_BOT_EMAIL: ${{ secrets.ZULIP_BOT_EMAIL }} - ZULIP_BOT_API_KEY: ${{ secrets.ZULIP_BOT_API_KEY }} - ZULIP_SITE: ${{ secrets.ZULIP_SITE }} - REPO: ${{ github.event.repository.name }} - TAG: ${{ github.event.release.tag_name }} - RELEASE_URL: ${{ github.event.release.html_url }} - CHANGELOG: ${{ github.event.release.body }} - run: | - CONTENT=$(cat < Date: Tue, 25 Aug 2026 22:53:54 +0100 Subject: [PATCH 2/4] Update release.yaml --- .github/workflows/release.yaml | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9fcda96..6c96f65 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -119,8 +119,45 @@ jobs: steps: - name: create release + id: create_release uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0 with: name: v${{ github.event.inputs.version }} generate_release_notes: true tag_name: ${{ github.event.inputs.version }} + + - name: fetch generated changelog + id: changelog + if: steps.create_release.outcome == 'success' + continue-on-error: true + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + # generate_release_notes builds the changelog server-side, so pull + # it back down here rather than trying to reconstruct it locally. + gh release view "${{ github.event.inputs.version }}" --json body -q .body > changelog.txt + + - name: notify Zulip of release + if: steps.create_release.outcome == 'success' + continue-on-error: true + env: + ZULIP_BOT_EMAIL: ${{ secrets.ZULIP_BOT_EMAIL }} + ZULIP_BOT_API_KEY: ${{ secrets.ZULIP_BOT_API_KEY }} + ZULIP_SITE: ${{ secrets.ZULIP_SITE }} + REPO: ${{ github.event.repository.name }} + TAG: v${{ github.event.inputs.version }} + RELEASE_URL: ${{ steps.create_release.outputs.url }} + run: | + CONTENT=$(cat < Date: Wed, 26 Aug 2026 11:55:10 +0100 Subject: [PATCH 3/4] Fix stream name from 'announcement' to 'announcements' --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6c96f65..38f6f97 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -158,6 +158,6 @@ jobs: curl -sSf "${ZULIP_SITE}/api/v1/messages" \ -u "${ZULIP_BOT_EMAIL}:${ZULIP_BOT_API_KEY}" \ --data-urlencode type=stream \ - --data-urlencode "to=announcement" \ + --data-urlencode "to=announcements" \ --data-urlencode "topic=software releases" \ --data-urlencode "content=${CONTENT}" From 19c95941533c218ef396ac84870c201a8b42a815 Mon Sep 17 00:00:00 2001 From: James Gebbie-Rayet Date: Wed, 26 Aug 2026 12:03:28 +0100 Subject: [PATCH 4/4] Update GitHub Action to version 3.0.2 --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 38f6f97..04bf886 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -120,7 +120,7 @@ jobs: - name: create release id: create_release - uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0 + uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2 with: name: v${{ github.event.inputs.version }} generate_release_notes: true