diff options
Diffstat (limited to '.github/workflows/bin/setup_git.sh')
-rwxr-xr-x | .github/workflows/bin/setup_git.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/bin/setup_git.sh b/.github/workflows/bin/setup_git.sh new file mode 100755 index 0000000000..4eb416720b --- /dev/null +++ b/.github/workflows/bin/setup_git.sh @@ -0,0 +1,8 @@ +#!/bin/bash -e +git config --global user.email "spack@example.com" +git config --global user.name "Test User" + +# create a local pr base branch +if [[ -n $GITHUB_BASE_REF ]]; then + git fetch origin "${GITHUB_BASE_REF}:${GITHUB_BASE_REF}" +fi |