mirror of
https://github.com/tj-actions/changed-files
synced 2025-02-22 01:17:40 +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
|
else
|
||||||
TARGET_BRANCH=$GITHUB_BASE_REF
|
TARGET_BRANCH=$GITHUB_BASE_REF
|
||||||
CURRENT_BRANCH=$GITHUB_HEAD_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
|
if [[ -z $INPUT_BASE_SHA ]]; then
|
||||||
PREVIOUS_SHA=$(git rev-parse "${TARGET_BRANCH}" 2>&1) && exit_status=$? || exit_status=$?
|
PREVIOUS_SHA=$(git rev-parse "${TARGET_BRANCH}" 2>&1) && exit_status=$? || exit_status=$?
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue