CI: improve more ci worflow

This commit is contained in:
mahee96
2026-02-24 02:24:47 +05:30
parent cb93168516
commit bcadc92057
2 changed files with 1 additions and 8 deletions

View File

@@ -34,7 +34,7 @@ jobs:
path: 'Dependencies/beta-build-num' path: 'Dependencies/beta-build-num'
fetch-depth: 1 fetch-depth: 1
- name: Setup - name: Setup Env
run: | run: |
BUILD_NUM=$(python3 scripts/ci/workflow.py reserve_build_number 'Dependencies/beta-build-num') BUILD_NUM=$(python3 scripts/ci/workflow.py reserve_build_number 'Dependencies/beta-build-num')
MARKETING_VERSION=$(python3 scripts/ci/workflow.py get-marketing-version) MARKETING_VERSION=$(python3 scripts/ci/workflow.py get-marketing-version)

View File

@@ -104,13 +104,6 @@ def reserve_build_number(repo, max_attempts=5):
write(data) write(data)
run("git add version.json", check=False, cwd=repo) run("git add version.json", check=False, cwd=repo)
print("---- DEBUG reserve_build_number ----", file=sys.stderr)
print(f"attempt: {attempt}", file=sys.stderr)
print(f"data: {data!r}", file=sys.stderr)
print(version_json.read_text(), file=sys.stderr)
print("------------------------------------", file=sys.stderr)
run(f"git commit -m '{data['tag']} - build no: {data['build']}' || true", check=False, cwd=repo) run(f"git commit -m '{data['tag']} - build no: {data['build']}' || true", check=False, cwd=repo)
rc = subprocess.call("git push", shell=True, cwd=repo) rc = subprocess.call("git push", shell=True, cwd=repo)