don't write a pypi.json.gz file if curl fails

This commit is contained in:
Christoph Reiter
2023-07-03 09:16:19 +02:00
parent 541c9e5ee1
commit ea670bbfc7

View File

@@ -40,7 +40,7 @@ jobs:
# makepkg requires strip in PATH even if it wont be used
touch /usr/bin/strip.exe
curl --fail -L --retry 5 -o srcinfo.json.gz "https://github.com/$GITHUB_REPOSITORY/releases/download/srcinfo-cache/srcinfo.json.gz"
curl -L --retry 5 -o pypi.json.gz "https://github.com/$GITHUB_REPOSITORY/releases/download/srcinfo-cache/pypi.json.gz"
curl --fail -L --retry 5 -o pypi.json.gz "https://github.com/$GITHUB_REPOSITORY/releases/download/srcinfo-cache/pypi.json.gz" || true
- name: Parse PKGBUILDs and update srcinfo.json.gz
run: |