Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.0.7 #7

Merged
merged 5 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/test_action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Test Action
on:
pull_request:
branches: [ "main" ]
types: [ opened, labeled ]

jobs:
get-num-square:
Expand Down
8 changes: 5 additions & 3 deletions src/control_multi_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ def update_version(arg, label_list):

isBumpLabelNotExist = True
for version_type in list(VersionCategory):
print(f'bump-{version_type.name.lower()}')
if f'bump-{version_type.name.lower()}' in label_list:
isBumpLabelExist = false
isBumpLabelExist = False
bump_version(version_type, arg['version_code_variable_name'], arg['version_name_variable_name'], version_code, major_version, minor_version, patch_version, revision_version)

if isBumpLabelNotExist:
Expand All @@ -104,8 +105,9 @@ def bump_version(version_category, vc_variable_name, vn_variable_name, version_c
my_file.write(f"CURRENT_VERSION_NAME={major_version}.{minor_version}.{patch_version}.{revision_version}\n")
my_file.write(f"CURRENT_VERSION_CODE={version_code}\n")

# version_code는 항상 증가
version_code += 1
# bump label 없는 경우에만 version code 증가
if (version_category is VersionCategory.NONE):
version_code += 1

if version_category is VersionCategory.REVISION:
revision_version += 1
Expand Down
Loading