From c5f18b59ee632365d50ff9438ed1484fa80f1a27 Mon Sep 17 00:00:00 2001 From: itmodulo Date: Wed, 21 Feb 2024 01:31:34 +0100 Subject: [PATCH] FIX CI 3 --- .gitea/workflows/release_arm64v8.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/release_arm64v8.yml b/.gitea/workflows/release_arm64v8.yml index 3e27118..1ae53c1 100644 --- a/.gitea/workflows/release_arm64v8.yml +++ b/.gitea/workflows/release_arm64v8.yml @@ -40,16 +40,16 @@ jobs: mv srcpkgs /home/runner && chown -R runner:runner /home/runner/srcpkgs - name: Determine packages to build run: | - su - runner -c "curl --silent https://static.itmodulo.eu/dl/repo/alpine/latest-stable/main/aarch64/ | pup 'a text{}' | grep \.apk > repo.txt" - su - runner -c "touch local.txt" - su - runner -c 'for i in srcpkgs/* ; do printf "%s-%s-r%s.apk\n" "$(echo $i | cut -d '/' -f 2)" "$(cat $i/APKBUILD | grep pkgver | grep -v '\$' | cut -d '=' -f 2 )" "$(cat $i/APKBUILD | grep pkgrel | grep -v '\$' | cut -d '=' -f 2 )" >> local.txt; done' - su - runner -c 'echo "LOCAL:"; cat local.txt' - su - runner -c "grep -Fvxf repo.txt local.txt > missing.txt" - su - runner -c 'echo "MISSING:"; cat missing.txt' - su - runner -c "sed -i -E 's/-[0-9a-z.]+-r[0-9]+\.apk//g' missing.txt" - su - runner -c "for i in $(cat missing.txt); do sed -i -E 's/'"${i}"-[0-9a-z.]+-r[0-9]+\.apk'//g' repo.txt; done;" - su - runner -c 'echo "REPO:"; cat repo.txt' - su - runner -c 'echo "WILL BUILD:"; cat missing.txt' + su - runner -c "curl --silent https://static.itmodulo.eu/dl/repo/alpine/latest-stable/main/aarch64/ | pup 'a text{}' | grep \.apk > /home/runner/repo.txt" + su - runner -c "touch /home/runner/local.txt" + su - runner -c 'for i in /home/runner/srcpkgs/* ; do printf "%s-%s-r%s.apk\n" "$(echo $i | cut -d '/' -f 5)" "$(cat $i/APKBUILD | grep pkgver | grep -v '\$' | cut -d '=' -f 2 )" "$(cat $i/APKBUILD | grep pkgrel | grep -v '\$' | cut -d '=' -f 2 )" >> /home/runner/local.txt; done' + su - runner -c 'echo "LOCAL:"; cat /home/runner/local.txt' + su - runner -c "grep -Fvxf /home/runner/repo.txt /home/runner/local.txt > /home/runner/missing.txt" + su - runner -c 'echo "MISSING:"; cat /home/runner/missing.txt' + su - runner -c "sed -i -E 's/-[0-9a-z.]+-r[0-9]+\.apk//g' /home/runner/missing.txt" + su - runner -c "for i in $(cat /home/runner/missing.txt); do sed -i -E 's/'"${i}"-[0-9a-z.]+-r[0-9]+\.apk'//g' /home/runner/repo.txt; done" + su - runner -c 'echo "REPO:"; cat /home/runner/repo.txt' + su - runner -c 'echo "WILL BUILD:"; cat /home/runner/missing.txt' - name: Compile missing in sequence run: |