From 9fbd3f9eda9b890af35de9e414534f16e1626e59 Mon Sep 17 00:00:00 2001 From: bars26 Date: Mon, 14 Sep 2026 16:10:25 +0300 Subject: [PATCH] fix: use the correct loop variable in the no-trailing-newline fallback The while-loop reading tj-actions/glob's paths-output-file falls back to `$p` to detect a final line with no trailing newline, but the loop variable is `$file`. Since `$p` is always unset, that fallback never fires, so the last glob-matched path is silently dropped whenever the paths file doesn't end in a newline (which tj-actions/glob@v22.0.2 does not append). Closes #43 Co-Authored-By: Claude Sonnet 5 --- .github/workflows/attach-release-assets.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/attach-release-assets.yaml b/.github/workflows/attach-release-assets.yaml index c4117df..1e2ad8e 100644 --- a/.github/workflows/attach-release-assets.yaml +++ b/.github/workflows/attach-release-assets.yaml @@ -138,7 +138,7 @@ jobs: if [ -s "${PATHS_FILE}" ]; then echo "Found the following matching artifacts: " cat "${PATHS_FILE}" - while IFS="" read -r file || [ -n "$p" ] + while IFS="" read -r file || [ -n "$file" ] do mv "$file" ${ASSETS_DIR}/$(basename "$file") done < "${PATHS_FILE}"