mirror of
https://github.com/tj-actions/changed-files
synced 2024-12-17 13:47:20 +00:00
Update action.yml
This commit is contained in:
parent
1f7183322d
commit
570809f09a
1 changed files with 11 additions and 12 deletions
23
action.yml
23
action.yml
|
@ -112,20 +112,19 @@ runs:
|
|||
UNKNOWN+=$(git diff --diff-filter=X --name-only "$HEAD_SHA" | grep -E "(${path})" || true)
|
||||
ALL_CHANGED+=$(git diff --diff-filter='*ACDMRTUX' --name-only "$HEAD_SHA" | grep -E "(${path})" || true)
|
||||
ALL_MODIFIED_FILES+=$(git diff --diff-filter='ACM' --name-only "$HEAD_SHA" | grep -E "(${path})" || true)
|
||||
|
||||
done
|
||||
|
||||
IFS=${{ inputs.separator }}
|
||||
|
||||
echo "::set-output name=added_files::${ADDED[*]}"
|
||||
echo "::set-output name=copied_files::${COPIED[*]}"
|
||||
echo "::set-output name=deleted_files::${DELETED[*]}"
|
||||
echo "::set-output name=modified_files::${MODIFIED[*]}"
|
||||
echo "::set-output name=renamed_files::${RENAMED[*]}"
|
||||
echo "::set-output name=changed_files::${CHANGED[*]}"
|
||||
echo "::set-output name=unmerged_files::${UNMERGED[*]}"
|
||||
echo "::set-output name=unknown_files::${UNKNOWN[*]}"
|
||||
echo "::set-output name=all_changed_files::${ALL_CHANGED[*]}"
|
||||
echo "::set-output name=all_modified_files::${ALL_MODIFIED_FILES[*]}"
|
||||
echo "::set-output name=added_files::$(IFS='${{ inputs.separator }}'; echo '${ADDED[*]}')"
|
||||
echo "::set-output name=copied_files::$(IFS='${{ inputs.separator }}'; echo '${COPIED[*]}'"
|
||||
echo "::set-output name=deleted_files::$(IFS='${{ inputs.separator }}'; echo '${DELETED[*]}'"
|
||||
echo "::set-output name=modified_files::$(IFS='${{ inputs.separator }}'; echo '${MODIFIED[*]}'"
|
||||
echo "::set-output name=renamed_files::$(IFS='${{ inputs.separator }}'; echo '${RENAMED[*]}'"
|
||||
echo "::set-output name=changed_files::$(IFS='${{ inputs.separator }}'; echo '${CHANGED[*]}'"
|
||||
echo "::set-output name=unmerged_files::$(IFS='${{ inputs.separator }}'; echo '${UNMERGED[*]}'"
|
||||
echo "::set-output name=unknown_files::$(IFS='${{ inputs.separator }}'; echo '${UNKNOWN[*]}'"
|
||||
echo "::set-output name=all_changed_files::$(IFS='${{ inputs.separator }}'; echo '${ALL_CHANGED[*]}'"
|
||||
echo "::set-output name=all_modified_files::$(IFS='${{ inputs.separator }}'; echo '${ALL_MODIFIED_FILES[*]}'"
|
||||
fi
|
||||
shell: bash
|
||||
|
||||
|
|
Loading…
Reference in a new issue