File 1077-gh-Fix-arguments-to-.zip-workflow-dispatch.patch of Package erlang

From 3ff36ef6f6f20749b5a03b3667206ede0fdb5791 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Backstr=C3=B6m?= <lukas@erlang.org>
Date: Fri, 13 Sep 2024 09:46:14 +0200
Subject: [PATCH] gh: Fix arguments to .zip workflow dispatch

---
 .github/scripts/sync-github-releases.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/scripts/sync-github-releases.sh b/.github/scripts/sync-github-releases.sh
index c6dc35f999..f64dcdb097 100755
--- a/.github/scripts/sync-github-releases.sh
+++ b/.github/scripts/sync-github-releases.sh
@@ -244,7 +244,8 @@ _upload_artifacts() {
             if echo "${RI[@]}" | grep "otp_${2}_${stripped_name}.zip" > /dev/null; then
                 if [ ${#MISSING_WIN_ZIP[@]} -lt 20 ]; then
                     MISSING_WIN_ZIP=("${MISSING_WIN_ZIP[@]}" "${stripped_name}")
-                    _curl_post "${REPO}/actions/workflows/upload-windows-zip.yaml/dispatches" -d '{"version":"'"${stripped_name}"'", "target":"'"${2}"'"}'
+                    _curl_post "${REPO}/actions/workflows/upload-windows-zip.yaml/dispatches" \
+                        -d '{"ref":"master", "inputs":{"version":"'"${stripped_name}"'", "target":"'"${2}"'"}}'
                 fi
             fi
             ## See if we need to re-build any prebuilds
-- 
2.43.0

openSUSE Build Service is sponsored by