diff --git a/scripts/actions-sign.py b/scripts/actions-sign.py index be1de54..fc52a37 100644 --- a/scripts/actions-sign.py +++ b/scripts/actions-sign.py @@ -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")