From dd9210256d1f7d872ab26bec97baf63ca3b21221 Mon Sep 17 00:00:00 2001 From: Logan Pulley Date: Wed, 12 Oct 2022 15:16:26 -0500 Subject: [PATCH] Use cat instead of echo --- diff-sha.sh | 2 +- get-changed-paths.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/diff-sha.sh b/diff-sha.sh index 7676fbfa..abe4b9d5 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -133,7 +133,7 @@ if [[ -n "$PREVIOUS_SHA" && -n "$CURRENT_SHA" && "$PREVIOUS_SHA" == "$CURRENT_SH exit 1 fi -echo <> "$GITHUB_OUTPUT" +cat <> "$GITHUB_OUTPUT" target_branch=$TARGET_BRANCH current_branch=$CURRENT_BRANCH previous_sha=$PREVIOUS_SHA diff --git a/get-changed-paths.sh b/get-changed-paths.sh index efd49e73..388474ce 100755 --- a/get-changed-paths.sh +++ b/get-changed-paths.sh @@ -267,7 +267,7 @@ if [[ $INPUT_INCLUDE_ALL_OLD_NEW_RENAMED_FILES == "true" ]]; then echo "::debug::All old & new renamed files: $ALL_OLD_NEW_RENAMED" fi -echo <> "$GITHUB_OUTPUT" +cat <> "$GITHUB_OUTPUT" added_files=$ADDED copied_files=$COPIED deleted_files=$DELETED