Passage du payload via un fichier temporaire pour la création de publication Gitea
This commit is contained in:
parent
c77c020be0
commit
1d1a679d62
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue