ci(github/update): only use retry logic for JSON api calls

The uploaded artifacts were corrupted thanks to the new implementation.
This commit is contained in:
Luis Quiñones
2025-06-08 11:50:31 -05:00
parent a1fe7620e3
commit c18083f6dc

4
.github/update.sh vendored
View File

@@ -61,7 +61,7 @@ download_artifact_from_zen_repo() {
# relative or absolute path
file_path="$2"
with_retry curl -L \
curl -L \
-H "Accept: application/octet-stream" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/zen-browser/desktop/releases/assets/$artifact_id" >"$file_path"
@@ -217,7 +217,7 @@ update_version() {
download_artifact_from_zen_repo "$artifact_id" "/tmp/$artifact_name"
with_retry gh release --repo="$flake_repo_location" \
gh release --repo="$flake_repo_location" \
upload "$release_name" "/tmp/$artifact_name"
echo "[uploaded] The artifact is available @ following link: $self_download_url"