mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-22 08:14:02 +01:00
Fix GITHUB_REF parsing
This commit is contained in:
parent
dd3ad4419b
commit
b589a7b485
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user