mirror of
https://github.com/tj-actions/changed-files
synced 2025-01-18 13:57:39 +00:00
Update action.yml
This commit is contained in:
parent
79272641ee
commit
bca6aacc45
1 changed files with 5 additions and 2 deletions
|
@ -127,9 +127,12 @@ runs:
|
|||
ALL_CHANGED=$(echo "$ALL_CHANGED" | sed -E 's/(${{ inputs.separator }})$//')
|
||||
ALL_MODIFIED_FILES=$(echo "$ALL_MODIFIED_FILES" | sed -E 's/(${{ inputs.separator }})$//')
|
||||
|
||||
SEP_INPUT_FILES=$(echo $INPUT_FILES || sed -E 's/ /(${{ inputs.separator }})/g')
|
||||
OUTPUT_ALL_MODIFIED_FILES=$(echo $ALL_MODIFIED_FILES | sed "s/(${{ inputs.separator }})/ /g")
|
||||
|
||||
if [[ $ALL_MODIFIED_FILES -eq $SEP_INPUT_FILES ]]; then
|
||||
IFS=$'\n' SORTED_INPUT_FILES=($(sort <<<"${INPUT_FILES[*]}"))
|
||||
IFS=$'\n' SORTED_OUTPUT_ALL_MODIFIED_FILES=($(sort <<<"${OUTPUT_ALL_MODIFIED_FILES[*]}"))
|
||||
|
||||
if [[ $SORTED_INPUT_FILES -eq $SORTED_OUTPUT_ALL_MODIFIED_FILES ]]; then
|
||||
echo "::set-output name=has_changed::true"
|
||||
else
|
||||
echo "::set-output name=has_changed::false"
|
||||
|
|
Loading…
Reference in a new issue