From 50696e2116f5a2a7fb6f2c03d1ae8b0f75f76498 Mon Sep 17 00:00:00 2001 From: Rudra-IITM Date: Thu, 1 Feb 2024 19:01:21 +0530 Subject: [PATCH] commit msg change and corection in if statement --- action.yml | 2 +- updatesnap/SnapVersionModule/snap_version_module.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index d3f0d18..ae04f77 100644 --- a/action.yml +++ b/action.yml @@ -89,7 +89,7 @@ runs: commit_msg="Update snap version" fi if [ $IS_VERSION_CHANGE = true ] && [ $IS_CHANGE = true ]; then - commit_msg="Update snap version & update tag" + commit_msg="Update snap version/tag" fi git commit -a -m "$commit_msg" shell: bash diff --git a/updatesnap/SnapVersionModule/snap_version_module.py b/updatesnap/SnapVersionModule/snap_version_module.py index 4dfaf07..7ca2cff 100644 --- a/updatesnap/SnapVersionModule/snap_version_module.py +++ b/updatesnap/SnapVersionModule/snap_version_module.py @@ -70,7 +70,7 @@ def process_snap_version_data(git_repo_url, snap_name, version_schema): return None upstreamversion = match.group(1).replace('_', '.') - if upstreamversion != prevversion: + if upstreamversion != prevversion.split('-')[0]: return f"{upstreamversion}-1" # Determine package release number packagerelease = int(