Clean-up double-pipe errors

This commit is contained in:
Antoine Martin 2024-10-23 08:37:41 -04:00
parent 7cf8ac491e
commit e8a0a7b3c0
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -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`