chore: test rename (#495)

* chore: test rename

* Update entrypoint.sh

* Update entrypoint.sh

* Create manual-test.yml
This commit is contained in:
Tonye Jack
2022-05-22 01:20:50 -04:00
committed by GitHub
parent a78216810d
commit 944a8b8909
3 changed files with 35 additions and 1 deletions

View File

@@ -46,7 +46,12 @@ function get_renames() {
)
fi
done < <(git submodule | awk '{print $2}')
git log --name-status --ignore-submodules=all "$base".."$sha" | grep -E "^R" | awk -F '\t' -v d="$INPUT_OLD_NEW_SEPARATOR" '{print $2d$3}'
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
}
echo "::group::changed-files"