Skip to content

Commit

Permalink
fix: Unset insteadOf in git config of release job (#253)
Browse files Browse the repository at this point in the history
## Which problem is this PR solving?

- Closes #252

## Short description of the changes

- updates the release script to unset an `insteadOf` config in the
global git config of the circleci job.

## How to verify that this has the expected result

Tested that the git remote is set properly. Can't test the actual `cr
index` command until the next release.
  • Loading branch information
TylerHelmuth authored Jun 9, 2023
1 parent b7a3ac6 commit eeb0ade
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .circleci/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@ release_charts() {

update_index() {
git config user.name "$GIT_USERNAME"
git remote set-url origin "https://github.com/$GIT_REPOSITORY_OWNER/$GIT_REPOSITORY_NAME.git"
git config --global --unset url.ssh://git@github.com.insteadof
git remote add origin-https "https://github.com/$GIT_REPOSITORY_OWNER/$GIT_REPOSITORY_NAME.git"

mkdir .cr-index
cr index --git-repo "$GIT_REPOSITORY_NAME" --owner "$GIT_REPOSITORY_OWNER" --token "$GITHUB_TOKEN" --push
cr index --git-repo "$GIT_REPOSITORY_NAME" --owner "$GIT_REPOSITORY_OWNER" --token "$GITHUB_TOKEN" --remote "origin-https" --push
}

main

0 comments on commit eeb0ade

Please sign in to comment.