mirror of
https://github.com/tj-actions/changed-files
synced 2025-01-17 09:17:46 +00:00
Update action.yml
This commit is contained in:
parent
c8f612d6e8
commit
fbeabde486
1 changed files with 19 additions and 9 deletions
28
action.yml
28
action.yml
|
@ -57,17 +57,27 @@ runs:
|
|||
|
||||
echo "Getting head sha..."
|
||||
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)"
|
||||
|
||||
echo "Getting diff..."
|
||||
echo "::set-output name=added_files::$(git diff --diff-filter=A --name-only ${HEAD_SHA} || true)"
|
||||
echo "::set-output name=copied_files::$(git diff --diff-filter=C --name-only ${HEAD_SHA} || true)"
|
||||
echo "::set-output name=deleted_files::$(git diff --diff-filter=D --name-only ${HEAD_SHA} || true)"
|
||||
echo "::set-output name=modified_files::$(git diff --diff-filter=M --name-only ${HEAD_SHA} || true)"
|
||||
echo "::set-output name=renamed_files::$(git diff --diff-filter=R --name-only ${HEAD_SHA} || true)"
|
||||
echo "::set-output name=changed_files::$(git diff --diff-filter=T --name-only ${HEAD_SHA} || true)"
|
||||
echo "::set-output name=unmerged_files::$(git diff --diff-filter=R --name-only ${HEAD_SHA} || true)"
|
||||
echo "::set-output name=unknown_files::$(git diff --diff-filter=X --name-only ${HEAD_SHA} || true)"
|
||||
echo "::set-output name=all_changed_files::$(git diff --diff-filter="*" --name-only ${HEAD_SHA} || true)"
|
||||
echo "::set-output name=added_files::$ADDED_FILES"
|
||||
echo "::set-output name=copied_files::$COPIED_FILES"
|
||||
echo "::set-output name=deleted_files::$DELETED_FILES"
|
||||
echo "::set-output name=modified_files::$MODIFIED_FILES"
|
||||
echo "::set-output name=renamed_files::$RENAMED_FILES"
|
||||
echo "::set-output name=changed_files::$CHANGED_FILES"
|
||||
echo "::set-output name=unmerged_files::$UNMERGED_FILES"
|
||||
echo "::set-output name=unknown_files::$UNKNOWN_FILES"
|
||||
echo "::set-output name=all_changed_files::$ALL_CHANGED_FILES"
|
||||
shell: bash
|
||||
|
||||
branding:
|
||||
|
|
Loading…
Reference in a new issue