Update entrypoint.sh

This commit is contained in:
Tonye Jack 2022-05-24 00:14:06 -04:00 committed by GitHub
parent c3c25d12b0
commit 205450238e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,12 +46,8 @@ function get_renames() {
)
fi
done < <(git submodule | awk '{print $2}')
if [ -n "$(git log --name-status --ignore-submodules=all "$base".."$sha")" ]; then
git log --name-status --ignore-submodules=all "$base".."$sha" | grep -E "^R" | awk -F '\t' -v d="$INPUT_OLD_NEW_SEPARATOR" '{print $2d$3}'
else
git diff --diff-filter=R --name-status --ignore-submodules=all "$base" "$sha" | grep -E "^R" | awk -F '\t' -v d="$INPUT_OLD_NEW_SEPARATOR" '{print $2d$3}'
fi
git log --name-status --ignore-submodules=all "$base".."$sha" | grep -E "^R" | awk -F '\t' -v d="$INPUT_OLD_NEW_SEPARATOR" '{print $2d$3}'
}
echo "::group::changed-files"