Continue if wget fails
This commit is contained in:
parent
d8589bdf30
commit
965c1d1d0d
3 changed files with 6 additions and 3 deletions
|
@ -30,7 +30,8 @@ jobs:
|
|||
run: |
|
||||
while read pkgs; do
|
||||
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
|
||||
rm $pkgs.apk
|
||||
done < missing
|
||||
|
|
|
@ -33,7 +33,8 @@ jobs:
|
|||
run: |
|
||||
while read pkgs; do
|
||||
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
|
||||
rm $pkgs.apk
|
||||
done < missing
|
||||
|
|
|
@ -30,7 +30,8 @@ jobs:
|
|||
run: |
|
||||
while read pkgs; do
|
||||
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
|
||||
rm $pkgs.apk
|
||||
done < missing
|
||||
|
|
Loading…
Reference in a new issue