3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2025-01-17 19:17:45 +00:00

Update action.yml (#70)

This commit is contained in:
Tonye Jack 2021-05-16 16:12:12 -04:00 committed by GitHub
parent 03b96b1ee4
commit 550d248e17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,13 +142,12 @@ runs:
if [[ -n "$INPUT_FILES" ]]; then
# shellcheck disable=SC2001
OUTPUT_ALL_MODIFIED_FILES=$(echo "$ALL_MODIFIED_FILES" | tr "$INPUT_SEPARATOR" " " | xargs)
ALL_INPUT_FILES=$(echo "$INPUT_FILES" | tr "\n" " " | xargs)
echo "Input files: ${ALL_INPUT_FILES[@]}"
echo "Matching modified files: ${OUTPUT_ALL_MODIFIED_FILES[@]}"
echo "Matching modified files: ${ALL_MODIFIED_FILES[@]}"
if [[ ${#OUTPUT_ALL_MODIFIED_FILES[@]} -gt 0 ]]; then
if [[ ${#ALL_MODIFIED_FILES[@]} -gt 0 ]]; then
echo "::set-output name=any_changed::true"
else
echo "::set-output name=any_changed::false"