Passage du payload via un fichier temporaire pour la création de publication Gitea

This commit is contained in:
wpetit 2022-09-08 17:03:54 +02:00
parent c77c020be0
commit 1d1a679d62
1 changed files with 7 additions and 1 deletions

View File

@ -104,9 +104,15 @@ function create_release {
gitea_api "/repos/$GITEA_RELEASE_ORG/$GITEA_RELEASE_PROJECT/releases/${existing_release}" -XDELETE
fi
local tmpfile=$(mktemp)
echo "$payload" > "$tmpfile"
gitea_api "/repos/$GITEA_RELEASE_ORG/$GITEA_RELEASE_PROJECT/releases" \
-H "Content-Type:application/json" \
-d "$payload"
-d "@$tmpfile"
rm -f "$tmpfile"
}
function json_set {