From e8a0a7b3c06b9688727cb0c6fe5104e0256a28e6 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 23 Oct 2024 08:37:41 -0400 Subject: [PATCH] Clean-up double-pipe errors --- .forgejo/workflows/sync-community.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/sync-community.yml b/.forgejo/workflows/sync-community.yml index 30d97a2..979207a 100644 --- a/.forgejo/workflows/sync-community.yml +++ b/.forgejo/workflows/sync-community.yml @@ -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`