mirror of
https://github.com/tj-actions/changed-files
synced 2025-01-17 19:17:45 +00:00
Update action.yml
This commit is contained in:
parent
95ef6d6cbd
commit
86c6017967
1 changed files with 5 additions and 0 deletions
|
@ -129,9 +129,14 @@ runs:
|
|||
|
||||
OUTPUT_ALL_MODIFIED_FILES=$(echo $ALL_MODIFIED_FILES | sed "s/(${{ inputs.separator }})/ /g")
|
||||
|
||||
echo $OUTPUT_ALL_MODIFIED_FILES
|
||||
|
||||
IFS=$'\n' SORTED_INPUT_FILES=($(sort <<<"${INPUT_FILES[*]}"))
|
||||
IFS=$'\n' SORTED_OUTPUT_ALL_MODIFIED_FILES=($(sort <<<"${OUTPUT_ALL_MODIFIED_FILES[*]}"))
|
||||
|
||||
echo $SORTED_INPUT_FILES
|
||||
echo $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