diff --git a/entrypoint.sh b/entrypoint.sh index e1c0511..1904505 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,7 +4,8 @@ set -eu script_dir="$(dirname "$0")" cd $script_dir -eval git clone "https://${INPUT_GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" ${GITHUB_REPOSITORY} +maintainer=${GITHUB_REPOSITORY%/*} +eval git clone "https://${maintainer}:${INPUT_GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" ${GITHUB_REPOSITORY} cd $GITHUB_REPOSITORY eval git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/* eval git fetch --all