feat(release): include nightly changelogs in Discord announcements (#15754)

This commit is contained in:
Exotic authored and GitHub committed 2026-10-04 18:10:37 -03:00
1 parent 484459f0a9
commit b4381985db
3 files changed
+784 -172

No files matched your search

+20 -1
View File
@@ -1347,6 +1347,24 @@ jobs:
args:
- --filter=@t3tools/scripts...
- name: Read published release notes
if: needs.preflight.outputs.is_prerelease == 'true'
continue-on-error: true
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
RELEASE_TAG: ${{ needs.preflight.outputs.tag }}
RELEASE_CHANNEL: ${{ needs.preflight.outputs.release_channel }}
run: |
if [ "$RELEASE_CHANNEL" = 'nightly' ]; then
if ! gh release view "$RELEASE_TAG" --json body --jq '.body // ""' > "$RUNNER_TEMP/discord-release-notes.md"; then
: > "$RUNNER_TEMP/discord-release-notes.md"
echo '::warning::Could not read published release notes; announcing without a changelog.'
fi
else
: > "$RUNNER_TEMP/discord-release-notes.md"
fi
- name: Announce prerelease on Discord
if: needs.preflight.outputs.is_prerelease == 'true'
continue-on-error: true
@@ -1359,7 +1377,8 @@ jobs:
--release-name "${{ needs.preflight.outputs.release_name }}" \
--release-version "${{ needs.preflight.outputs.version }}" \
--tag "${{ needs.preflight.outputs.tag }}" \
--release-url "https://github.com/${{ github.repository }}/releases/tag/${{ needs.preflight.outputs.tag }}"
--release-url "https://github.com/${{ github.repository }}/releases/tag/${{ needs.preflight.outputs.tag }}" \
--release-notes-file "$RUNNER_TEMP/discord-release-notes.md"
- name: Announce latest release on Discord
if: needs.preflight.outputs.make_latest == 'true'