From a0c8c8ff786417bdf5fc39fb6f1fc7d2674e1f44 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 Jan 2026 01:53:19 +0000 Subject: [PATCH 2/6] Add Discord release notification step Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com> --- .github/workflows/release.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0ffba0dbe..5f28ce6ee 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -302,3 +302,36 @@ jobs: artifacts/eqemu-server-linux-x64.zip artifacts/eqemu-server-windows-x64.zip artifacts/SHA256SUMS.txt + - name: Notify Discord + env: + DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} + TAG_NAME: ${{ github.ref_name }} + REPO: ${{ github.repository }} + run: | + if [ -z "$DISCORD_WEBHOOK_URL" ]; then + echo "DISCORD_WEBHOOK_URL is not set; skipping Discord notification." + exit 0 + fi + LINUX_URL="https://github.com/${REPO}/releases/download/${TAG_NAME}/eqemu-server-linux-x64.zip" + WINDOWS_URL="https://github.com/${REPO}/releases/download/${TAG_NAME}/eqemu-server-windows-x64.zip" + SHA_URL="https://github.com/${REPO}/releases/download/${TAG_NAME}/SHA256SUMS.txt" + payload=$(cat < Date: Sun, 25 Jan 2026 01:54:07 +0000 Subject: [PATCH 3/6] Add webhook failure logging Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com> --- .github/workflows/release.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5f28ce6ee..0e6805f47 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -334,4 +334,5 @@ jobs: } EOF ) - curl -sS -H "Content-Type: application/json" -d "$payload" "$DISCORD_WEBHOOK_URL" + curl -sS -H "Content-Type: application/json" -d "$payload" "$DISCORD_WEBHOOK_URL" || \ + echo "Failed to send Discord notification." From 1f37236f806feb7994e0b9c4693b6032db7bd5f6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 Jan 2026 01:56:49 +0000 Subject: [PATCH 4/6] Harden Discord webhook payload and logging Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com> --- .github/workflows/release.yaml | 55 +++++++++++++++++++++------------- 1 file changed, 34 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0e6805f47..af5279c57 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -315,24 +315,37 @@ jobs: LINUX_URL="https://github.com/${REPO}/releases/download/${TAG_NAME}/eqemu-server-linux-x64.zip" WINDOWS_URL="https://github.com/${REPO}/releases/download/${TAG_NAME}/eqemu-server-windows-x64.zip" SHA_URL="https://github.com/${REPO}/releases/download/${TAG_NAME}/SHA256SUMS.txt" - payload=$(cat < Date: Sun, 25 Jan 2026 01:57:12 +0000 Subject: [PATCH 5/6] Clean up webhook temp file Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com> --- .github/workflows/release.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index af5279c57..665dcc460 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -339,6 +339,7 @@ jobs: ] }') response_file=$(mktemp) + trap 'rm -f "$response_file"' EXIT http_code=$(curl -sS -o "$response_file" -w "%{http_code}" \ -H "Content-Type: application/json" -d "$payload" "$DISCORD_WEBHOOK_URL") curl_status=$? @@ -349,3 +350,4 @@ jobs: if [ "$http_code" -lt 200 ] || [ "$http_code" -ge 300 ]; then echo "Discord notification failed with HTTP $http_code: $(cat "$response_file")" fi + exit 0 From 8a1f31f15abfe5a6c05cfa371a02d6d5db47beb5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 Jan 2026 01:58:21 +0000 Subject: [PATCH 6/6] Document ignored webhook failures Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com> --- .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 665dcc460..93e518a45 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -349,5 +349,5 @@ jobs: fi if [ "$http_code" -lt 200 ] || [ "$http_code" -ge 300 ]; then echo "Discord notification failed with HTTP $http_code: $(cat "$response_file")" + echo "Continuing without failing the release job." fi - exit 0