Add error info
This commit is contained in:
parent
48f0a6a45b
commit
87836fffa5
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue