Skip to content

Commit

Permalink
Fix git tag environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoco007 committed Oct 13, 2020
1 parent 28f693a commit 8d81548
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bsipa_version_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
manifest_path, assembly_info_path = sys.argv[1:]

commit_hash = os.getenv("GIT_HASH")
rev = os.getenv("GIT_REV")
tag = os.getenv("GIT_TAG")

with open(manifest_path, "r") as manifest_file:
obj = json.load(manifest_file)
Expand Down Expand Up @@ -37,8 +37,8 @@
else:
print("✔ Assembly File Version")

if (rev is not None and len(rev) > 0):
if rev != ("v" + version_with_prerelease):
if (tag is not None and len(tag) > 0):
if tag != ("v" + version_with_prerelease):
print("Git tag does not match manifest version")
exit(-1)
else:
Expand Down

0 comments on commit 8d81548

Please sign in to comment.