OPS: appcenter builds fix

This commit is contained in:
overtorment 2023-12-28 22:18:15 +00:00 committed by Overtorment
parent e9c7a9f02d
commit d5fd3295dd
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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 = '';