Clean-up double-pipe errors
This commit is contained in:
parent
7cf8ac491e
commit
e8a0a7b3c0
1 changed files with 2 additions and 6 deletions
|
@ -19,7 +19,7 @@ jobs:
|
|||
apk --allow-untrusted --update-cache --repositories-file /dev/null --repository $upstream list | grep -v installed | awk '{print $1, $2}' | sort > upstream
|
||||
- name: Fetch info from downstream
|
||||
run: |
|
||||
apk --allow-untrusted --update-cache --repositories-file /dev/null --repository $downstream update || true
|
||||
! apk --allow-untrusted --update-cache --repositories-file /dev/null --repository $downstream update
|
||||
apk --allow-untrusted --update-cache --repositories-file /dev/null --repository $downstream list | grep -v installed | awk '{print $1, $2}' | sort > downstream
|
||||
- name: Missing apks detection
|
||||
run: |
|
||||
|
@ -33,12 +33,8 @@ jobs:
|
|||
count=1
|
||||
while read pkgs; do
|
||||
echo "[ $count / $total ] Sending $pkgs"
|
||||
# github actions doesn't do double pipe error suppression
|
||||
# github actions doesn't do double pipe error suppression, use !
|
||||
! wget -q $upstream/x86_64/$pkgs.apk
|
||||
|
||||
! true
|
||||
! false
|
||||
|
||||
# if it doesn't exist, it is because it failed to download.
|
||||
if [ -f $pkgs.apk ]; then
|
||||
result=`curl -s --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file $pkgs.apk $downstream`
|
||||
|
|
Loading…
Reference in a new issue