Browse Source

OPS: postbuild script

btcpayserverui v4.7.1a
Overtorment 5 years ago
parent
commit
283c32adee
  1. 2
      appcenter-post-build-get-pr-number.js
  2. 2
      appcenter-post-build.sh

2
appcenter-post-build-get-pr-number.js

@ -1,6 +1,6 @@
const https = require('https');
const auth = 'Basic ' + Buffer.from('Overtorment' + ':' + process.env.GITHUB).toString('base64');
const auth = 'Basic ' + Buffer.from(process.env.GITHUB).toString('base64');
const branch = require('child_process')
.execSync('git ls-remote --heads origin | grep $(git rev-parse HEAD) | cut -d / -f 3')

2
appcenter-post-build.sh

@ -16,5 +16,5 @@ if [ -f $FILENAME ]; then
echo App url: $APPURL
PR=`node appcenter-post-build-get-pr-number.js`
echo PR: $PR
curl -X POST --data "{\"body\":\"This was a triumph. I'm making a note here: HUGE SUCCESS.\n\n [android] $APPURL\"}" -u "$GITHUB_USERNAME:$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] $APPURL\"}" -u "$GITHUB" "https://api.github.com/repos/BlueWallet/BlueWallet/issues/$PR/comments"
fi

Loading…
Cancel
Save