From 1c596cf097426fc4d7d41f634b2cc86992fc06f3 Mon Sep 17 00:00:00 2001 From: Bo Lorentsen Date: Sat, 24 Oct 2026 19:41:59 +0200 Subject: [PATCH] Keep image globs outside quotes so they expand --- .gitea/actions/build-image/action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/actions/build-image/action.yml b/.gitea/actions/build-image/action.yml index 78488af..f890ae1 100644 --- a/.gitea/actions/build-image/action.yml +++ b/.gitea/actions/build-image/action.yml @@ -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