From 823dce3477341f7a56a1c4d1bcca3cc8d5165409 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 Jan 2026 01:57:12 +0000 Subject: [PATCH] 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