Skip to content

Commit

Permalink
Merge pull request #101 from EOSC-synergy/release/1.7.1
Browse files Browse the repository at this point in the history
Release/1.7.1
  • Loading branch information
orviz authored Oct 6, 2022
2 parents 0c249f0 + cc0bc2f commit 5b651ab
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions QC.Ver/get_git_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ def get_input_args():
return parser.parse_args()


def main():
args = get_input_args()

repo = git.Repo(args.repo_path)
def get_tag_in_last_commit(repo):
try:
tags = repo.git.describe('--exact-match', 'HEAD')
tag_list = tags.split('\n')
Expand All @@ -31,4 +28,15 @@ def main():
return tag_list


def get_tags(repo):
return [tag.name for tag in repo.tags]


def main():
args = get_input_args()

repo = git.Repo(args.repo_path)

return get_tags(repo)

print(main())

0 comments on commit 5b651ab

Please sign in to comment.