Skip to content

Commit

Permalink
fix: возможность через GHA секреты поставить альтернатианый url base …
Browse files Browse the repository at this point in the history
…репозитория
  • Loading branch information
mxseev committed Jul 21, 2022
1 parent 89e05b7 commit a0f92c7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/base-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit a0f92c7

Please sign in to comment.