From aea62a16b7f6f1781e805f361a0c8fd2a05429d9 Mon Sep 17 00:00:00 2001 From: Imbroglius <163344413+Imbroglius@users.noreply.github.com> Date: Thu, 4 Jul 2024 15:19:55 +0200 Subject: [PATCH] Update upload.sh --- upload.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/upload.sh b/upload.sh index 2df9898e..6c4f9a28 100755 --- a/upload.sh +++ b/upload.sh @@ -15,6 +15,7 @@ BD=$HOME/builds TAG="$(date +v%Y.%m.%d)" GUSER="Imbroglius" GREPO="Redmi_13C_treble_aosp" +GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} SKIPOTA=false if [ "$1" == "--skip-ota" ]; then @@ -26,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: Bearer ${{ secrets.MY_TOKEN || github.token }}" \ + -H "Authorization: Bearer $GH_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 @@ -39,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: Bearer ${{ secrets.MY_TOKEN || github.token }}" \ + -H "Authorization: Bearer $GH_TOKEN" \ -H "Content-Type: application/octet-stream" \ -T "$file" echo