Skip to content

Commit 9027f99

Browse files
committed
Auto-commit
1 parent 95e1e0c commit 9027f99

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

watchChanges.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22

33
GIT_CREDS_PRESENT="[ -n \"$GITHUB_TOKEN\" ]"
44
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'
105
git config --global user.email "$GIT_EMAIL"
116
git config --global user.name "$GIT_NAME"
7+
git config --global credential.helper store
8+
echo "https://x-access-token:${GITHUB_TOKEN}@github.com" > ~/.git-credentials
129
fi
1310

1411
echo -e 'protocol=https\nhost=github.com' | git credential fill

0 commit comments

Comments
 (0)