mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-06-30 23:12:45 +00:00
homebrew-bottles: change pages artifacts branch to main
Closes: tuna/issues#2236
This commit is contained in:
parent
4764ee0d68
commit
309d183689
@ -38,9 +38,11 @@ def formulae_github_pages(zip_file: Path, unzip_directory: Path, tar_directory:
|
||||
artifacts = artifacts.json()
|
||||
latest = None
|
||||
for artifact in artifacts["artifacts"]:
|
||||
if artifact["workflow_run"]["head_branch"] == "master":
|
||||
if artifact["workflow_run"]["head_branch"] == "main":
|
||||
latest = artifact
|
||||
break
|
||||
if latest is None:
|
||||
raise Exception("No latest artifact found")
|
||||
zip_url = latest["archive_download_url"]
|
||||
|
||||
check_and_download(zip_url, zip_file, zip_file, github_api_headers)
|
||||
|
Loading…
x
Reference in New Issue
Block a user