spack/.github/workflows/setup_git.sh
2021-12-23 16:02:09 +01:00

8 lines
240 B
Bash
Executable file

#!/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