From 4fb1b662c5b367f777391a326e596ce08a008a11 Mon Sep 17 00:00:00 2001 From: imbroglius <163344413+imbroglius@users.noreply.github.com> Date: Sat, 6 Jul 2024 17:04:37 +0200 Subject: [PATCH] Update upload.sh --- upload.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/upload.sh b/upload.sh index 42fd0c4a..aeeda94e 100755 --- a/upload.sh +++ b/upload.sh @@ -15,8 +15,6 @@ BD=$HOME/builds TAG="$(date +v%Y.%m.%d)" GUSER="imbroglius" GREPO="redmi_13c_treble_aosp" -GH_TOKEN= "${{ secrets.GITHUB_TOKEN }}" - SKIPOTA=false @@ -29,7 +27,7 @@ createRelease() { res=$(curl -s -L -X POST \ "https://api.github.com/repos/$GUSER/$GREPO/releases" \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: token $GH_TOKEN" \ + -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ -d "{\"tag_name\":\"$TAG\",\"name\":\"AOSP 14.0 $TAG\",\"body\":\"## Changelog\n- ...\n\n## Notes\n- ...\",\"draft\":true}") id=$(echo "$res" | jq -rc ".id") echo @@ -42,7 +40,7 @@ uploadAssets() { curl -o /dev/null -s -L -X POST \ "https://uploads.github.com/repos/$GUSER/$GREPO/releases/$id/assets?name=$(basename $file)" \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: token $GH_TOKEN" \ + -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ -H "Content-Type: application/octet-stream" \ -T "$file" echo