From d5fd3295dd9f36b594d96fbb178a7cca0db6e18f Mon Sep 17 00:00:00 2001 From: overtorment Date: Thu, 28 Dec 2023 22:18:15 +0000 Subject: [PATCH] OPS: appcenter builds fix --- appcenter-post-build.sh | 2 +- scripts/appcenter-post-build-get-pr-number.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/appcenter-post-build.sh b/appcenter-post-build.sh index eeff0bf8a..0f4005356 100755 --- a/appcenter-post-build.sh +++ b/appcenter-post-build.sh @@ -20,5 +20,5 @@ if [ -f $FILENAME ]; then DLOAD_APK="https://lambda-download-android-build.herokuapp.com/download/$BUILD_BUILDID" - curl -X POST --data "{\"body\":\"♫ This was a triumph. I'm making a note here: HUGE SUCCESS ♫\n\n [android in browser] $APPURL\n\n[download apk]($DLOAD_APK) \"}" -u "$GITHUB" "https://api.github.com/repos/BlueWallet/BlueWallet/issues/$PR/comments" + curl -X POST --data "{\"body\":\"♫ This was a triumph. I'm making a note here: HUGE SUCCESS ♫\n\n [android in browser] $APPURL\n\n[download apk]($DLOAD_APK) \"}" -H "Authorization: Bearer $GITHUB" "https://api.github.com/repos/BlueWallet/BlueWallet/issues/$PR/comments" fi diff --git a/scripts/appcenter-post-build-get-pr-number.js b/scripts/appcenter-post-build-get-pr-number.js index bf53838f7..ac653fd38 100755 --- a/scripts/appcenter-post-build-get-pr-number.js +++ b/scripts/appcenter-post-build-get-pr-number.js @@ -1,7 +1,5 @@ const https = require('https'); -const auth = 'Basic ' + Buffer.from(process.env.GITHUB).toString('base64'); - const gitCommand = "git log -n 1 --pretty=%d HEAD | awk '{print $2}' | sed 's/origin\\///' | sed 's/)//'"; const branch = require('child_process').execSync(gitCommand).toString().trim(); @@ -13,7 +11,7 @@ const req = https.request( port: 443, path: '/repos/BlueWallet/BlueWallet/pulls', method: 'GET', - headers: { 'User-Agent': 'BlueWallet bot', Authorization: auth }, + headers: { 'User-Agent': 'BlueWallet bot' }, }, resp => { let data = '';