Merge branch 'master' into biometrics

This commit is contained in:
Marcos Rodriguez 2019-10-01 14:55:21 -04:00
commit 25320a87ba
2 changed files with 6 additions and 1 deletions

View file

@ -2,6 +2,8 @@ const https = require('https');
const auth = 'Basic ' + Buffer.from('Overtorment' + ':' + 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").toString().trim();
const req = https.request(
{
hostname: 'api.github.com',
@ -21,7 +23,7 @@ const req = https.request(
try {
const prs = JSON.parse(data);
for (let pr of prs) {
if (process.env.APPCENTER_BRANCH === pr.head.ref) {
if (branch === pr.head.ref) {
console.log(pr.number);
}
}

View file

@ -1,6 +1,9 @@
#!/usr/bin/env bash
echo Uploading to Appetize and publishing link to Github...
echo -n "Branch "
git ls-remote --heads origin | grep $(git rev-parse HEAD) | cut -d / -f 3
# git log -n 1 --pretty=%d HEAD | awk '{print $2}' | sed 's/origin\///' | sed 's/)//'
FILENAME="$APPCENTER_OUTPUT_DIRECTORY/app-release.apk"