Skip to content

Commit

Permalink
Update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Jun 18, 2024
1 parent e4156d9 commit 5bca6d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion submodules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

set -e

if [ -n "$GITHUB_TOKEN" ]; then
if [ -n "$GH_TOKEN" ]; then
echo "Running in CI environment, using GH_TOKEN for authentication"
git config --global url."https://${GH_TOKEN}@github.com/".insteadOf "https://github.com/"
elif [ -n "$GITHUB_TOKEN" ]; then
echo "Running in CI environment, using GITHUB_TOKEN for authentication"
git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
else
Expand Down

0 comments on commit 5bca6d2

Please sign in to comment.