Last active
August 23, 2022 06:39
-
-
Save jonnyyu/1458d4ec0d58517e47a58ff92d692752 to your computer and use it in GitHub Desktop.
get git tag version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
def get_tag(): | |
return subprocess.check_output(['git', 'describe', '--always'], cwd='json', encoding='utf-8').strip() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment