Update action.yml

This commit is contained in:
Tonye Jack 2021-05-01 08:25:21 -04:00 committed by GitHub
parent 254f56230a
commit 1f7183322d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,14 +87,14 @@ runs:
echo "::set-output name=all_modified_files::$ALL_MODIFIED_FILES" echo "::set-output name=all_modified_files::$ALL_MODIFIED_FILES"
else else
ADDED_FILES=() ADDED=()
COPIED_FILES=() COPIED=()
DELETED_FILES=() DELETED=()
MODIFIED_FILES=() MODIFIED=()
RENAMED_FILES=() RENAMED=()
CHANGED_FILES=() CHANGED=()
UNMERGED_FILES=() UNMERGED=()
UNKNOWN_FILES=() UNKNOWN=()
ALL_CHANGED=() ALL_CHANGED=()
ALL_MODIFIED_FILES=() ALL_MODIFIED_FILES=()
@ -102,29 +102,30 @@ runs:
do do
echo "Checking for file changes: \"${path}\"..." echo "Checking for file changes: \"${path}\"..."
ADDED_FILES+="$(git diff --diff-filter=A --name-only "$HEAD_SHA" | grep -E "(${path})" || true)${{ inputs.separator }}" ADDED+=$(git diff --diff-filter=A --name-only "$HEAD_SHA" | grep -E "(${path})" || true)
COPIED_FILES+="$(git diff --diff-filter=C --name-only "$HEAD_SHA" | grep -E "(${path})" || true)${{ inputs.separator }}" COPIED+=$(git diff --diff-filter=C --name-only "$HEAD_SHA" | grep -E "(${path})" || true)
DELETED_FILES+="$(git diff --diff-filter=D --name-only "$HEAD_SHA" | grep -E "(${path})" || true)${{ inputs.separator }}" DELETED+=$(git diff --diff-filter=D --name-only "$HEAD_SHA" | grep -E "(${path})" || true)
MODIFIED_FILES+="$(git diff --diff-filter=M --name-only "$HEAD_SHA" | grep -E "(${path})" || true)${{ inputs.separator }}" MODIFIED+=$(git diff --diff-filter=M --name-only "$HEAD_SHA" | grep -E "(${path})" || true)
RENAMED_FILES+="$(git diff --diff-filter=R --name-only "$HEAD_SHA" | grep -E "(${path})" || true)${{ inputs.separator }}" RENAMED+=$(git diff --diff-filter=R --name-only "$HEAD_SHA" | grep -E "(${path})" || true)
CHANGED_FILES+="$(git diff --diff-filter=T --name-only "$HEAD_SHA" | grep -E "(${path})" || true)${{ inputs.separator }}" CHANGED+=$(git diff --diff-filter=T --name-only "$HEAD_SHA" | grep -E "(${path})" || true)
UNMERGED_FILES+="$(git diff --diff-filter=U --name-only "$HEAD_SHA" | grep -E "(${path})" || true)${{ inputs.separator }}" UNMERGED+=$(git diff --diff-filter=U --name-only "$HEAD_SHA" | grep -E "(${path})" || true)
UNKNOWN_FILES+="$(git diff --diff-filter=X --name-only "$HEAD_SHA" | grep -E "(${path})" || true)${{ inputs.separator }}" 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)${{ inputs.separator }}" 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)${{ inputs.separator }}" ALL_MODIFIED_FILES+=$(git diff --diff-filter='ACM' --name-only "$HEAD_SHA" | grep -E "(${path})" || true)
"
done done
echo "::set-output name=added_files::$ADDED" IFS=${{ inputs.separator }}
echo "::set-output name=copied_files::$COPIED"
echo "::set-output name=deleted_files::$DELETED" echo "::set-output name=added_files::${ADDED[*]}"
echo "::set-output name=modified_files::$MODIFIED" echo "::set-output name=copied_files::${COPIED[*]}"
echo "::set-output name=renamed_files::$RENAMED" echo "::set-output name=deleted_files::${DELETED[*]}"
echo "::set-output name=changed_files::$CHANGED" echo "::set-output name=modified_files::${MODIFIED[*]}"
echo "::set-output name=unmerged_files::$UNMERGED" echo "::set-output name=renamed_files::${RENAMED[*]}"
echo "::set-output name=unknown_files::$UNKNOWN" echo "::set-output name=changed_files::${CHANGED[*]}"
echo "::set-output name=all_changed_files::$ALL_CHANGED" echo "::set-output name=unmerged_files::${UNMERGED[*]}"
echo "::set-output name=all_modified_files::$ALL_MODIFIED_FILES" 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[*]}"
fi fi
shell: bash shell: bash