Skip to content

Commit ba5aa06

Browse files
committed
CI split-code.sh – try a different way of providing credentials
1 parent eab2191 commit ba5aa06

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

bin/split-code.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,8 @@ split_and_push() {
5555
# Prefer GH_TOKEN; fall back to GITHUB_TOKEN for GitHub Actions
5656
token="${GH_TOKEN:-${GITHUB_TOKEN:-}}"
5757

58-
if [[ -n "$token" ]]; then
59-
repo_url="https://x-access-token:${token}@github.com/${org}/${repo_name}.git"
60-
else
61-
repo_url="[email protected]:${org}/${repo_name}.git"
62-
fi
63-
58+
repo_url="https://x-access-token:${token}@github.com/${org}/${repo_name}.git"
59+
6460
echo "==> Splitting ${pkg_dir} -> ${org}/${repo_name}"
6561

6662
if [[ "$USE_FILTER_REPO" -eq 1 ]]; then

0 commit comments

Comments
 (0)