We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95e1e0c commit 9027f99Copy full SHA for 9027f99
1 file changed
watchChanges.sh
@@ -2,13 +2,10 @@
2
3
GIT_CREDS_PRESENT="[ -n \"$GITHUB_TOKEN\" ]"
4
if eval "$GIT_CREDS_PRESENT"; then
5
- export GIT_CONFIG_COUNT=2
6
- export GIT_CONFIG_KEY_0='credential.https://github.com.username'
7
- export GIT_CONFIG_VALUE_0=x-access-token
8
- export GIT_CONFIG_KEY_1='credential.https://github.com.helper'
9
- export GIT_CONFIG_VALUE_1='!f() { test "$1" = get && echo "password=${GITHUB_TOKEN}"; }; f'
10
git config --global user.email "$GIT_EMAIL"
11
git config --global user.name "$GIT_NAME"
+ git config --global credential.helper store
+ echo "https://x-access-token:${GITHUB_TOKEN}@github.com" > ~/.git-credentials
12
fi
13
14
echo -e 'protocol=https\nhost=github.com' | git credential fill
0 commit comments