From da779be3837d14bf21219bc4fd83170235948968 Mon Sep 17 00:00:00 2001 From: Dimitris Platis Date: Fri, 17 Sep 2021 00:18:23 +0200 Subject: [PATCH 1/2] Update entrypoint.sh --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index e1c0511..4a341e4 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,7 +4,7 @@ set -eu script_dir="$(dirname "$0")" cd $script_dir -eval git clone "https://${INPUT_GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" ${GITHUB_REPOSITORY} +eval git clone "https://platisd:${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 From 5337eac928b5e6e5404ea562774da64f16536843 Mon Sep 17 00:00:00 2001 From: Dimitris Platis Date: Fri, 17 Sep 2021 00:41:11 +0200 Subject: [PATCH 2/2] Update entrypoint.sh --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 4a341e4..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://platisd:${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