mirror of
https://github.com/tj-actions/changed-files
synced 2025-01-29 13:34:51 +00:00
Update action.yml
This commit is contained in:
parent
461fb0a676
commit
1378377c4f
1 changed files with 4 additions and 0 deletions
|
@ -130,9 +130,13 @@ runs:
|
|||
OUTPUT_ALL_MODIFIED_FILES=$(echo $ALL_MODIFIED_FILES | sed "s/(${{ inputs.separator }})/ /g")
|
||||
ALL_INPUT_FILES=$(echo $INPUT_FILES | sed "s/\n/ /g")
|
||||
|
||||
echo "Files: $OUTPUT_ALL_MODIFIED_FILES != $ALL_INPUT_FILES"
|
||||
|
||||
IFS=$'\n' SORTED_INPUT_FILES=($(sort <<<"${ALL_INPUT_FILES[*]}"))
|
||||
IFS=$'\n' SORTED_OUTPUT_ALL_MODIFIED_FILES=($(sort <<<"${OUTPUT_ALL_MODIFIED_FILES[*]}"))
|
||||
|
||||
echo "Files: $SORTED_INPUT_FILES != $SORTED_OUTPUT_ALL_MODIFIED_FILES"
|
||||
|
||||
if [[ "${SORTED_INPUT_FILES[*]}" == "${SORTED_OUTPUT_ALL_MODIFIED_FILES[*]}" ]]; then
|
||||
echo "::set-output name=has_changed::true"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue