Skip to content
This repository was archived by the owner on Oct 27, 2021. It is now read-only.

Commit d7eb846

Browse files
committed
⚡️ Only fetch one branch
1 parent 4ab2fb2 commit d7eb846

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

entrypoint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ echo "## Initializing git repo..."
88
git init
99
echo "### Adding git remote..."
1010
git remote add origin https://x-access-token:$GITHUB_TOKEN@github.com/$REPO_FULLNAME.git
11-
echo "### git fetch..."
12-
git fetch
13-
echo "### Setting branch"
11+
echo "### Getting branch"
1412
BRANCH=${GITHUB_REF#*refs/heads/}
13+
echo "### git fetch $BRANCH ..."
14+
git fetch origin $BRANCH
1515
echo "### Branch: $BRANCH (ref: $GITHUB_REF )"
1616
git checkout $BRANCH
1717

0 commit comments

Comments
 (0)