From 3ebdc30d91a6c1e5f5b838cbf1c588cd65b89419 Mon Sep 17 00:00:00 2001 From: Iain Samuel McLean Elder Date: Mon, 1 Jul 2024 04:11:35 +0200 Subject: [PATCH] Don't print blank line when no files change --- .github/workflows/test_changes.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_changes.yml b/.github/workflows/test_changes.yml index d2377c8..975244a 100644 --- a/.github/workflows/test_changes.yml +++ b/.github/workflows/test_changes.yml @@ -18,7 +18,7 @@ jobs: id: changed-installers uses: tj-actions/changed-files@v44 with: - dir_names: true + files: programs/** - name: Get changed installer names id: changed @@ -28,7 +28,7 @@ jobs: run: | { printf "changed_installers=" - cat <<< "$CHANGED_FILES" \ + printf "%s" "$CHANGED_FILES" \ | cut -d/ -f2 | sort -u | jq -R | jq -s -c -M } >> "$GITHUB_OUTPUT"