From b6b72a44c83eb61e43b7096bc24175f820d75829 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 24 Sep 2022 18:35:01 -0600 Subject: [PATCH] Updated to use INPUT_HAS_CUSTOM_PATTERNS. --- action.yml | 1 + get-changed-paths.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 92c21e97..4c548769 100644 --- a/action.yml +++ b/action.yml @@ -227,6 +227,7 @@ runs: INPUT_DIFF_RELATIVE: ${{ inputs.diff_relative }} INPUT_DIR_NAMES: ${{ inputs.dir_names }} INPUT_JSON: ${{ inputs.json }} + INPUT_HAS_CUSTOM_PATTERNS: ${{ steps.glob.outputs.has-custom-patterns }} branding: icon: file-text diff --git a/get-changed-paths.sh b/get-changed-paths.sh index 6866f632..fe63604b 100755 --- a/get-changed-paths.sh +++ b/get-changed-paths.sh @@ -81,7 +81,7 @@ echo "Retrieving changes between $INPUT_PREVIOUS_SHA ($INPUT_TARGET_BRANCH) → echo "Getting diff..." -if [[ -z "$INPUT_FILES_PATTERN_FILE" ]]; then +if [[ "$INPUT_HAS_CUSTOM_PATTERNS" == "false" ]]; then if [[ "$INPUT_JSON" == "false" ]]; then ADDED=$(get_diff "$INPUT_PREVIOUS_SHA" "$INPUT_CURRENT_SHA" A | awk -v d="$INPUT_SEPARATOR" '{s=(NR==1?s:s d)$0}END{print s}') COPIED=$(get_diff "$INPUT_PREVIOUS_SHA" "$INPUT_CURRENT_SHA" C | awk -v d="$INPUT_SEPARATOR" '{s=(NR==1?s:s d)$0}END{print s}')