diff --git a/.gitea/workflows/release_arm64v8.yml b/.gitea/workflows/release_arm64v8.yml index b558d20..18dca3a 100644 --- a/.gitea/workflows/release_arm64v8.yml +++ b/.gitea/workflows/release_arm64v8.yml @@ -43,14 +43,14 @@ jobs: su - runner -c "pwd; ls -lah --color" 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' + 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: |