mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-19 16:52:25 +00:00
Clean up webhook temp file
Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com>
This commit is contained in:
parent
1f37236f80
commit
823dce3477
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user