Skip to content

Commit

Permalink
[GHA] Don't set CI_BUILD_DEV_TAG on release branches (#26313)
Browse files Browse the repository at this point in the history
Same as #26312 but for
master
  • Loading branch information
akladiev authored Aug 29, 2024
1 parent 3ffb013 commit bb09495
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/actions/create_manifest/create_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,12 @@ def generate_manifest(repos: list, product_type: str, event_type: str, build_typ
custom_branch_name = f'-{trigger_repo.branch}' if trigger_repo.branch != 'master' else ''
run_number_postfix = f'-{os.environ.get("GITHUB_RUN_NUMBER")}' if os.environ.get("GITHUB_RUN_NUMBER") else ''
product_version = f"{ov_version}{run_number_postfix}-{trigger_repo.revision[:11]}{custom_branch_name}"
ci_build_dev_tag = f'dev{trigger_repo.commit_time.strftime("%Y%m%d")}'
wheel_product_version = f'{ov_version}.{ci_build_dev_tag}'

merge_queue_target_branch = next(iter(re.findall(f'^gh-readonly-queue/(.*)/', trigger_repo.branch)), None)
target_branch = merge_queue_target_branch or trigger_repo.target_branch or trigger_repo.branch
is_release_branch = re.match('^releases/.+$', target_branch)
ci_build_dev_tag = f'dev{trigger_repo.commit_time.strftime("%Y%m%d")}' if not is_release_branch else ''
wheel_product_version = f'{ov_version}.{ci_build_dev_tag}' if not is_release_branch else ov_version

set_github_output('CI_BUILD_NUMBER', product_version, 'GITHUB_ENV')
set_github_output('CI_BUILD_DEV_TAG', ci_build_dev_tag, 'GITHUB_ENV')
Expand Down

0 comments on commit bb09495

Please sign in to comment.