From e0cf236348603dcce56f92bf7037d56f57b383c6 Mon Sep 17 00:00:00 2001 From: Alice Date: Mon, 12 Oct 2026 04:30:23 +0700 Subject: [PATCH] fix: use correct loop variable in attach-release-assets fallback The no-trailing-newline fallback used $p instead of $file, so the last matched path was silently dropped when tj-actions/glob wrote paths-output-file without a trailing newline. Closes #43 --- .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}"