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: |
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue