mirror of
https://github.com/tj-actions/changed-files
synced 2025-02-21 05:28:14 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue