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:
parent
03b96b1ee4
commit
550d248e17
1 changed files with 2 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue