Fix Conan version tags.
Issues seemed to be caused by checking for a non-existent leading slash.
@@ -19,9 +19,8 @@ if __name__ == "__main__":
if 'CI' in os.environ:
os.environ["CONAN_SYSREQUIRES_MODE"] = "enabled"
# Fix GitHub Actions version tag.
- print("GITHUB_REF:" + os.environ.get("GITHUB_REF", "<undefined>"))
- if os.environ.get("GITHUB_REF", "").startswith("/refs/tags/"):
- version = os.environ["GITHUB_REF"].replace("/refs/tags/", "")
+ if os.environ.get("GITHUB_REF", "").startswith("refs/tags/"):
+ version = os.environ["GITHUB_REF"].replace("refs/tags/", "")
builder = ConanMultiPackager(
username="hexdecimal",
