Continue if wget fails

This commit is contained in:
Antoine Martin 2024-10-20 11:00:33 -04:00
parent d8589bdf30
commit 965c1d1d0d
Signed by: forge
GPG key ID: D62A472A4AA7D541
3 changed files with 6 additions and 3 deletions

View file

@ -30,7 +30,8 @@ jobs:
run: | run: |
while read pkgs; do while read pkgs; do
echo "Sending $pkgs" echo "Sending $pkgs"
wget $upstream/x86_64/$pkgs.apk # if fails continues to next
wget $upstream/x86_64/$pkgs.apk || continue
curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file $pkgs.apk $downstream curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file $pkgs.apk $downstream
rm $pkgs.apk rm $pkgs.apk
done < missing done < missing

View file

@ -33,7 +33,8 @@ jobs:
run: | run: |
while read pkgs; do while read pkgs; do
echo "Sending $pkgs" echo "Sending $pkgs"
wget $upstream/x86_64/$pkgs.apk # if fails continue
wget $upstream/x86_64/$pkgs.apk || continue
curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file $pkgs.apk $downstream curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file $pkgs.apk $downstream
rm $pkgs.apk rm $pkgs.apk
done < missing done < missing

View file

@ -30,7 +30,8 @@ jobs:
run: | run: |
while read pkgs; do while read pkgs; do
echo "Sending $pkgs" echo "Sending $pkgs"
wget $upstream/x86_64/$pkgs.apk # if fails continue
wget $upstream/x86_64/$pkgs.apk || continue
curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file $pkgs.apk $downstream curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file $pkgs.apk $downstream
rm $pkgs.apk rm $pkgs.apk
done < missing done < missing