Update entrypoint.sh (#204)

update.sh: fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository error fix

Co-authored-by: Tonye Jack <jtonye@ymail.com>
This commit is contained in:
talva-tr 2021-10-12 14:56:12 +03:00 committed by GitHub
parent 69451b63b8
commit d0d71572ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ if [[ -z $GITHUB_BASE_REF ]]; then
else
TARGET_BRANCH=$GITHUB_BASE_REF
CURRENT_BRANCH=$GITHUB_HEAD_REF
git fetch temp_changed_files "${TARGET_BRANCH}":"${TARGET_BRANCH}"
git fetch temp_changed_files -u "${TARGET_BRANCH}":"${TARGET_BRANCH}"
if [[ -z $INPUT_BASE_SHA ]]; then
PREVIOUS_SHA=$(git rev-parse "${TARGET_BRANCH}" 2>&1) && exit_status=$? || exit_status=$?
else