diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b804f8e1..c9b58e9b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,6 +18,10 @@ on: description: "Build latest as test" default: false + pull_request: + types: [closed] + branches: + - main env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} diff --git a/rootfs/scripts/update-pa-candidates.sh b/rootfs/scripts/update-pa-candidates.sh index 78d01b34..e87da605 100755 --- a/rootfs/scripts/update-pa-candidates.sh +++ b/rootfs/scripts/update-pa-candidates.sh @@ -50,7 +50,7 @@ updated=0 skipped=0 passed=0 -tail -n +2 "$file" | while IFS= read -r line; do +while IFS= read -r line; do n=$((n+1)) if [[ "$line" == \#* ]]; then @@ -77,7 +77,7 @@ tail -n +2 "$file" | while IFS= read -r line; do fi (IFS=','; printf '%s\n' "${f[*]}") >> "$tmp" -done +done < <(tail -n +2 "$file") mv -f "$tmp" "$file" chmod a+r "$file"