mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2026-06-16 16:38:51 +00:00
Set git user in GitHub Context
This commit is contained in:
parent
bb84516b38
commit
678486426c
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user