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:
parent
69451b63b8
commit
d0d71572ef
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user