diff --git a/.forgejo/bin/check_ver.sh b/.forgejo/bin/check_ver.sh index 7a1f534..6403e54 100755 --- a/.forgejo/bin/check_ver.sh +++ b/.forgejo/bin/check_ver.sh @@ -7,9 +7,13 @@ repo=${downstream/*\/} curl --silent $downstream/x86_64/APKINDEX.tar.gz | tar -O -zx APKINDEX > APKINDEX -owned_by_you=$(awk -v RS= -v ORS="\n\n" '/m:Antoine Martin \(ayakael\) /' APKINDEX | awk -F ':' '{if($1=="o"){print $2}}' | sort | uniq) - -echo "Found $(printf '%s\n' $owned_by_you | wc -l ) packages owned by you" +if [ "$ALL_PACKAGES" == "true" ]; then + owned_by_you=$(awk -F ':' '{if($1=="o"){print $2}}' APKINDEX | sort | uniq) + echo "Found $(printf '%s\n' $owned_by_you | wc -l ) packages" +else + owned_by_you=$(awk -v RS= -v ORS="\n\n" '/m:Antoine Martin \(ayakael\) /' APKINDEX | awk -F ':' '{if($1=="o"){print $2}}' | sort | uniq) + echo "Found $(printf '%s\n' $owned_by_you | wc -l ) packages owned by you" +fi rm -f out_of_date not_in_anitya diff --git a/.forgejo/workflows/check-backports.yml b/.forgejo/workflows/check-backports.yml index 2cac95f..c84ef2d 100644 --- a/.forgejo/workflows/check-backports.yml +++ b/.forgejo/workflows/check-backports.yml @@ -14,6 +14,7 @@ jobs: downstream: https://ayakael.net/api/packages/forge/alpine/v3.21/backports FORGEJO_TOKEN: ${{ secrets.forgejo_token }} LABEL_NUMBER: 4 + ALL_PACKAGES: true steps: - name: Environment setup run: apk add grep coreutils gawk curl wget bash nodejs git jq sed