Keep image globs outside quotes so they expand
Build RPi image / build (pull_request) Successful in 10s
Build RPi image / build (push) Successful in 10s

This commit is contained in:
druppy committed 2026-10-24 19:41:59 +02:00
1 parent 16d63d95cb
commit 1c596cf097
1 file changed
+3 -2
+3 -2
View File
@@ -83,9 +83,10 @@ runs:
IMAGE_DIR="${{ steps.locate.outputs.image-dir }}"
shopt -s nullglob
# only the timestamped names: the short ones are hardlinks to the same
# inode and would upload every image twice
# inode and would upload every image twice.
# NOTE: the glob must stay OUTSIDE the quotes - "$DIR/pat*" never expands.
FILES=("${IMAGE_DIR}/${{ inputs.image-prefix }}."*.rootfs-[0-9]*.wic.* \
"${IMAGE_DIR}/${{ inputs.image-prefix }}-*.rootfs-[0-9]*.wic.*")
"${IMAGE_DIR}/${{ inputs.image-prefix }}-"*.rootfs-[0-9]*.wic.*)
if [ "${#FILES[@]}" -eq 0 ]; then
echo "::error::no flashable .wic image for ${{ inputs.machine }} in $IMAGE_DIR"
exit 1