Fix GITHUB_REF parsing

This commit is contained in:
David Dworken 2022-05-24 10:23:15 -07:00
parent dd3ad4419b
commit b589a7b485

View File

@ -4,7 +4,7 @@ import time
import subprocess
def main():
version = os.environ['GITHUB_REF'].split('/')
version = os.environ['GITHUB_REF'].split('/')[-1].split("-")[0]
print("Downloading binaries (this may pause for a while)")
waitUntilPublished(f"https://github.com/ddworken/hishtory/releases/download/{version}-darwin-arm64/hishtory-darwin-arm64", "hishtory-darwin-arm64")
waitUntilPublished(f"https://github.com/ddworken/hishtory/releases/download/{version}-darwin-amd64/hishtory-darwin-amd64", "hishtory-darwin-amd64")