Fix for 2
Release Alpine apk for ARM64v8 / compilation-arm64v8 (push) Has been cancelled Details

This commit is contained in:
ITmodulo 2024-02-06 23:26:08 +01:00
parent d4ce7250e2
commit d14f4175ad
1 changed files with 2 additions and 2 deletions

View File

@ -41,8 +41,8 @@ jobs:
- name: Determine packages to build - name: Determine packages to build
run: | 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 "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 "touch ~/local.txt"
su - runner -c "cd ~/srcpkgs; for i in ./* ; 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 'cd ~/srcpkgs; for i in ./* ; 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 "grep -Fvxf repo.txt local.txt > missing.txt" su - runner -c "grep -Fvxf repo.txt local.txt > missing.txt"
su - runner -c "sed -i -E 's/-[0-9a-z.]+-r[0-9]+\.apk//g' 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 | tac ); do sed -i -E 's/'"${i}"-[0-9a-z.]+-r[0-9]+\.apk'//g' repo.txt; done;" su - runner -c "for i in $(cat missing.txt | tac ); do sed -i -E 's/'"${i}"-[0-9a-z.]+-r[0-9]+\.apk'//g' repo.txt; done;"