Skip to content

Commit

Permalink
set default test tag in the script
Browse files Browse the repository at this point in the history
  • Loading branch information
skudasov committed Sep 11, 2024
1 parent 39c41a0 commit 980d4e5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/test-package-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,17 @@ def push_changes():
def main():
parser = argparse.ArgumentParser(description="Remove a Git tag, add it if necessary, and push changes.")
parser.add_argument("-tag", required=False, default=default_tag.format(default_package), help="The Git tag to remove and re-add.")
parser.add_argument("-package", required=True, default=default_package, help="The Git tag to remove and re-add.")
parser.add_argument("-package", required=False, default=default_package, help="The Git tag to remove and re-add.")

args = parser.parse_args()

tag = default_tag.format(args.package)

# Remove the specified tag if it exists
remove_tag(args.tag)
remove_tag(tag)

# Add (or re-add) the tag
add_tag(args.tag)
add_tag(tag)

# Push remaining changes and all tags
push_changes()
Expand Down

0 comments on commit 980d4e5

Please sign in to comment.