Ci/gitea actions #1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user