From da53f4a77ad45c6a31021741986a69a71668fb57 Mon Sep 17 00:00:00 2001 From: lcenchew Date: Sun, 16 Aug 2020 12:33:28 +0800 Subject: [PATCH] fix: git remote syntax usage: git remote add [] -f, --fetch fetch the remote branches --tags import all tags and associated objects when fetching or do not fetch any tag at all (--no-tags) -t, --track branch(es) to track -m, --master master branch --mirror[=(push|fetch)] set up remote as a mirror to push to or fetch from --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index d94bd3b..4f5aea1 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,7 +2,7 @@ cd "${GITHUB_WORKSPACE}" -git remote add -f "https://github.com/$1.git" +git remote add -f upstream "https://github.com/$1.git" git branch ${GITHUB_REF} git merge --ff-only upstream/${GITHUB_REF} git push