3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2025-02-19 15:23:42 +00:00

Update action.yml

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

View file

@ -56,6 +56,7 @@ runs:
git fetch --depth=1 origin ${TARGET_BRANCH}:${TARGET_BRANCH}
echo "Getting head sha..."
HEAD_SHA=$(git rev-parse ${TARGET_BRANCH} || true)
ADDED_FILES="$(git diff --diff-filter=A --name-only ${HEAD_SHA} || true)"