3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2025-01-29 03:34:50 +00:00

Update action.yml

This commit is contained in:
Tonye Jack 2021-03-05 06:42:06 -05:00 committed by GitHub
parent 7f553e5eac
commit c779b1b3a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,15 +59,15 @@ runs:
HEAD_SHA=$(git rev-parse ${TARGET_BRANCH} || true)
ADDED_FILES=($(git diff --diff-filter=A --name-only ${HEAD_SHA} || true))
COPIED_FILES=($(git diff --diff-filter=C --name-only ${HEAD_SHA} || true))
DELETED_FILES=($(git diff --diff-filter=D --name-only ${HEAD_SHA} || true))
MODIFIED_FILES=($(git diff --diff-filter=M --name-only ${HEAD_SHA} || true))
RENAMED_FILES=($(git diff --diff-filter=R --name-only ${HEAD_SHA} || true))
CHANGED_FILES=($(git diff --diff-filter=T --name-only ${HEAD_SHA} || true))
UNMERGED_FILES=($(git diff --diff-filter=R --name-only ${HEAD_SHA} || true))
UNKNOWN_FILES=($(git diff --diff-filter=X --name-only ${HEAD_SHA} || true))
ALL_CHANGED_FILES=($(git diff --diff-filter="*" --name-only ${HEAD_SHA} || true))
read -a ADDED_FILES <<< "$(git diff --diff-filter=A --name-only ${HEAD_SHA} || true)"
read -a COPIED_FILES <<< "$(git diff --diff-filter=C --name-only ${HEAD_SHA} || true)"
read -a DELETED_FILES <<< "$(git diff --diff-filter=D --name-only ${HEAD_SHA} || true)"
read -a MODIFIED_FILES <<< "$(git diff --diff-filter=M --name-only ${HEAD_SHA} || true)"
read -a RENAMED_FILES <<< "$(git diff --diff-filter=R --name-only ${HEAD_SHA} || true)"
read -a CHANGED_FILES <<< "$(git diff --diff-filter=T --name-only ${HEAD_SHA} || true)"
read -a UNMERGED_FILES <<< "$(git diff --diff-filter=U --name-only ${HEAD_SHA} || true)"
read -a UNKNOWN_FILES <<< "$(git diff --diff-filter=X --name-only ${HEAD_SHA} || true)"
read -a ALL_CHANGED_FILES <<< "$(git diff --diff-filter='*' --name-only ${HEAD_SHA} || true)"
echo "Getting diff..."
echo "::set-output name=added_files::$ADDED_FILES"