Pre-Release detection on Azure

This commit is contained in:
Paulchen Panther
2019-06-22 16:12:09 +02:00
committed by GitHub
parent 93b9028b7d
commit b2c63ff770
6 changed files with 59 additions and 53 deletions

View File

@@ -4,6 +4,11 @@ import json, sys
retval = 0
with open(sys.argv[1]) as f:
data = json.load(f)
sys.stdout.write(data['versionnr'])
sys.exit(0)
if len(sys.argv) < 3:
data = json.load(f)
sys.stdout.write(data['versionnr'])
sys.exit(0)
else:
data = json.load(f)
sys.stdout.write(data['channel'])
sys.exit(0)