mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-12-25 16:32:47 +00:00
homebrew-bottles: change pages artifacts branch to main
Some checks failed
docker-images / multi (., tunasync-scripts) (push) Has been cancelled
docker-images / multi (bandersnatch) (push) Has been cancelled
docker-images / multi (dockerfiles/rubygems, rubygems-mirror) (push) Has been cancelled
docker-images / multi (ftpsync) (push) Has been cancelled
docker-images / multi (nix-channels) (push) Has been cancelled
docker-images / multi (pub-mirror) (push) Has been cancelled
docker-images / multi (rustup-mirror) (push) Has been cancelled
docker-images / multi (shadowmire) (push) Has been cancelled
docker-images / multi (tsumugu) (push) Has been cancelled
Some checks failed
docker-images / multi (., tunasync-scripts) (push) Has been cancelled
docker-images / multi (bandersnatch) (push) Has been cancelled
docker-images / multi (dockerfiles/rubygems, rubygems-mirror) (push) Has been cancelled
docker-images / multi (ftpsync) (push) Has been cancelled
docker-images / multi (nix-channels) (push) Has been cancelled
docker-images / multi (pub-mirror) (push) Has been cancelled
docker-images / multi (rustup-mirror) (push) Has been cancelled
docker-images / multi (shadowmire) (push) Has been cancelled
docker-images / multi (tsumugu) (push) Has been cancelled
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…
Reference in New Issue