Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
if [[ -z "$DOWNSTREAM_BRANCH" ]]; then
echo "Missing \$DOWNSTREAM_BRANCH"
echo "Default to ${UPSTREAM_BRANCH}"
DOWNSTREAM_BREANCH=UPSTREAM_BRANCH
DOWNSTREAM_BRANCH=$UPSTREAM_BRANCH
fi

if ! echo "$UPSTREAM_REPO" | grep '\.git'; then
Expand All @@ -34,6 +34,7 @@ cd work || { echo "Missing work dir" && exit 2 ; }
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config --local user.password ${GITHUB_TOKEN}
git config checkout.defaultRemote origin

git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"

Expand Down