-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: возможность через GHA секреты поставить альтернатианый url base …
…репозитория
- Loading branch information
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,13 @@ jobs: | |
id: base_check | ||
run: | | ||
# set base repository remote | ||
unset CI | ||
sh scripts/add_base_remote.sh | ||
export ALTERNATIVE_BASE_REMOTE=${{ secrets.BASE_REMOTE_URL }} | ||
if [ -n "$ALTERNATIVE_BASE_REMOTE" ]; then | ||
git remote add base $ALTERNATIVE_BASE_REMOTE | ||
else | ||
unset CI && sh scripts/add_base_remote.sh | ||
fi | ||
# tell git to clone via https instead of ssh (to clone without the ssh key) | ||
git config --global url."https://github.com/".insteadOf [email protected]: | ||
|