Skip to content

Commit 6ebc09c

Browse files
committed
Updated
1 parent 57f0b1d commit 6ebc09c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/scripts/compute-release-tag.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,19 @@
77
"Content-Type": "application/x-www-form-urlencoded"
88
}
99

10-
1110
API_ENDPOINT_UOA="https://api.github.com/repos/RandomCoderOrg/ubuntu-on-android/releases"
1211
resp_uoa = requests.get(API_ENDPOINT_UOA, headers=headers)
1312
Json_data2 = json.loads(resp_uoa.text)
1413

15-
uV = Json_data2[0]['tag_name']
1614
# uV = ["v3.1-alpha"][0] # For testing
17-
udroid_version = uV.replace("v","")
18-
15+
udroid_version = Json_data2[0]['tag_name'].replace("v","")
1916

2017
API_ENDPOINT_UA="https://api.github.com/repos/RandomCoderOrg/udroid-download/releases"
2118
resp_ud = requests.get(API_ENDPOINT_UA, headers=headers)
2219
Json_data = json.loads(resp_ud.text)
23-
dr = Json_data[0]['tag_name']
2420

2521

26-
match = re.compile(r'V(\d+)(\D+)(\d+)').findall(dr)
22+
match = re.compile(r'V(\d+)(\D+)(\d+)').findall(Json_data[0]['tag_name'])
2723
_, RELEASE_TYPE, IterationNumber = match[0]
2824
IterationNumber = int(IterationNumber) + 1
2925

0 commit comments

Comments
 (0)