Add error info

This commit is contained in:
Antoine Martin 2024-10-21 08:30:07 -04:00
parent 48f0a6a45b
commit 87836fffa5
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -31,8 +31,10 @@ jobs:
while read pkgs; do
echo "Sending $pkgs"
# if fails continues to next
if `wget $upstream/x86_64/$pkgs.apk`; then
curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file $pkgs.apk $downstream
rm $pkgs.apk
if `wget -q $upstream/x86_64/$pkgs.apk`; then
curl -s --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file $pkgs.apk $downstream
rm -f $pkgs.apk
else
echo "Error: Couldn't download $pkgs"
fi
done < missing