Skip to content

Commit

Permalink
mirror URL
Browse files Browse the repository at this point in the history
  • Loading branch information
ludamad committed Mar 3, 2025
1 parent 8b38ca5 commit 35392e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions boxes/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ function release_git_push {
jq --arg v $version ".dependencies[\"$pkg\"] = \$v" package.json >$tmp && mv $tmp package.json
done

# We use 'gh repo clone' as it can authenticate through GITHUB_TOKEN.
gh repo clone "$mirrored_repo_url"
git init &>/dev/null
git remote add origin "$mirrored_repo_url" &>/dev/null
git fetch origin --quiet

# Checkout the existing branch or create it if it doesn't exist.
if git ls-remote --heads origin "$branch_name" | grep -q "$branch_name"; then
Expand Down
2 changes: 0 additions & 2 deletions l1-contracts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ function release_git_push {
jq --arg v $version ".dependencies[\"$pkg\"] = \$v" package.json >$tmp && mv $tmp package.json
done


# We use 'gh repo clone' as it can authenticate through GITHUB_TOKEN.
git init &>/dev/null
git remote add origin "$mirrored_repo_url" &>/dev/null
git fetch origin --quiet
Expand Down

0 comments on commit 35392e2

Please sign in to comment.