diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2ccb41dc356..3695c586632 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,6 @@ name: CI on: push: branches: - - main - "**" pull_request: types: diff --git a/get-changed-paths.sh b/get-changed-paths.sh index 38a1972bacd..224d050f9e0 100755 --- a/get-changed-paths.sh +++ b/get-changed-paths.sh @@ -52,13 +52,13 @@ function get_dirname_max_depth() { } function json_output() { - JQ_ARGS="-R" + JQ_ARGS="-sR" if [[ "$INPUT_JSON_RAW_FORMAT" == "true" ]]; then JQ_ARGS="$JQ_ARGS -r" fi # shellcheck disable=SC2086 - jq $JQ_ARGS 'split("\n") | @json' | tr -s / + jq $JQ_ARGS 'split("\n") | map(select(. != "")) | @json' | sed -r 's/^"|"$//g' | tr -s / } function get_diff() { diff --git a/test/test/test.txt b/test/test/test.txt index 9f4b6d8bfea..6de7b8c69d6 100644 --- a/test/test/test.txt +++ b/test/test/test.txt @@ -1 +1 @@ -This is a test file +This is a test file.