mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-27 23:47:39 +01:00
CI: improve more ci worflow
This commit is contained in:
@@ -70,13 +70,15 @@ def reserve_build_number(repo, max_attempts=5):
|
|||||||
if not version_json.exists():
|
if not version_json.exists():
|
||||||
branch = runAndGet("git rev-parse --abbrev-ref HEAD", cwd=repo)
|
branch = runAndGet("git rev-parse --abbrev-ref HEAD", cwd=repo)
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"issued_at": utc_now(),
|
"issued_at": utc_now(),
|
||||||
"tag": branch,
|
"tag": branch,
|
||||||
}
|
}
|
||||||
version_json.write_text(json.dumps(data, indent=2) + "\n")
|
version_json.write_text(json.dumps(data, indent=2) + "\n")
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
return json.loads(version_json.read_text())
|
||||||
|
|
||||||
def write(data):
|
def write(data):
|
||||||
version_json.write_text(json.dumps(data, indent=2) + "\n")
|
version_json.write_text(json.dumps(data, indent=2) + "\n")
|
||||||
|
|||||||
Reference in New Issue
Block a user