mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-23 00:34:27 +01:00
Fix GITHUB_REF parsing
This commit is contained in:
parent
dd3ad4419b
commit
b589a7b485
@ -4,7 +4,7 @@ import time
|
|||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
def main():
|
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)")
|
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-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")
|
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