Skip to content

Commit

Permalink
test (#4)
Browse files Browse the repository at this point in the history
* all bump version 수정
  • Loading branch information
peter-j0y authored Sep 11, 2023
1 parent c0906fb commit f9a35d5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/control_multi_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ def decode_labels(labels, version_name_dev, version_name_stg, version_name_prod,
bump_patch(version_code_prod_variable_name, version_name_prod_variable_name, version_code_prod, major_version_prod, minor_version_prod, patch_version_prod)

if 'bump-minor' in label_list:
bump_minor(version_code_dev_variable_name, version_name_dev_variable_name, version_code, major_version, minor_version, patch_version)
bump_minor(version_code_dev_variable_name, version_name_dev_variable_name, version_code_dev, major_version_dev, minor_version_dev, patch_version_dev)
bump_minor(version_code_stg_variable_name, version_name_stg_variable_name, version_code_stg, major_version_stg, minor_version_stg, patch_version_stg)
bump_minor(version_code_prod_variable_name, version_name_prod_variable_name, version_code_prod, major_version_prod, minor_version_prod, patch_version_prod)

if 'bump-major' in label_list:
bump_major(version_code_dev_variable_name, version_name_dev_variable_name, version_code, major_version, minor_version, patch_version)
bump_major(version_code_dev_variable_name, version_name_dev_variable_name, version_code_dev, major_version_dev, minor_version_dev, patch_version_dev)
bump_major(version_code_stg_variable_name, version_name_stg_variable_name, version_code_stg, major_version_stg, minor_version_stg, patch_version_stg)
bump_major(version_code_prod_variable_name, version_name_prod_variable_name, version_code_prod, major_version_prod, minor_version_prod, patch_version_prod)

Expand Down Expand Up @@ -157,13 +157,10 @@ def bump_major(vc_variable_name, vn_variable_name, version_code, major_version,
write_gradle_version(vc_variable_name, vn_variable_name, version_code, f"{major_version}.{minor_version}.{patch_version}")

if __name__ == '__main__':
# 변수화
gradle_file_path = os.environ.get('FILE-PATH')

# 변수화
pr_labels = os.environ.get('PR-LABELS')

# 변수화
version_name_dev_variable_name = os.environ.get('VERSION-NAME-DEV')
version_name_stg_variable_name = os.environ.get('VERSION-NAME-STG')
version_name_prod_variable_name = os.environ.get('VERSION-NAME-PROD')
Expand Down

0 comments on commit f9a35d5

Please sign in to comment.