From b2958b5640bfdd5b889759b6c34f0c3920810ac5 Mon Sep 17 00:00:00 2001 From: imbroglius <163344413+imbroglius@users.noreply.github.com> Date: Thu, 8 Aug 2024 22:48:34 +0200 Subject: [PATCH] Update upload.sh --- upload.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload.sh b/upload.sh index 4245c466..e88a9139 100644 --- a/upload.sh +++ b/upload.sh @@ -26,7 +26,7 @@ createRelease() { res=$(curl -s -L -X POST \ "https://api.github.com/repos/$GUSER/$GREPO/releases" \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.IMBROGLIOTOKEN }}" \ + -H "Authorization: Bearer $IMBROGLIOTOKEN" \ -d "{\"tag_name\":\"$TAG\",\"name\":\"ImbrogliOS 14.0 $TAG\",\"body\":\"## Changelog\n- ...\n\n## Notes\n- ...\",\"draft\":true}") id=$(echo "$res" | jq -rc ".id") echo @@ -39,7 +39,7 @@ uploadAssets() { curl -o /dev/null -s -L -X POST \ "https://api.github.com/repos/$GUSER/$GREPO/releases/$id/assets?name=$(basename $file)" \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.IMBROGLIOTOKEN }}" \ + -H "Authorization: Bearer $IMBROGLIOTOKEN" \ -H "Content-Type: application/octet-stream" \ -T "$file" echo