Set git user in GitHub Context

This commit is contained in:
Test Suite 2020-09-13 13:42:29 +02:00
parent bb84516b38
commit 678486426c
1 changed files with 5 additions and 2 deletions

View File

@ -11,8 +11,11 @@ setup() {
touch "${test_repository}"/{a,b,c}.txt touch "${test_repository}"/{a,b,c}.txt
cd "${test_repository}" cd "${test_repository}"
git config user.email "test@github.com" if [[ -n $GITHUB ]]; then
git config user.name "Test Suite" git config --global user.email "test@github.com"
git config --global user.name "Test Suite"
fi
git init --quiet git init --quiet
git add . > /dev/null 2>&1 git add . > /dev/null 2>&1