summaryrefslogtreecommitdiff
path: root/.github/workflows/setup_git.sh
blob: e319e07512e20d2cab521c8bfb8b9cbde93f0e98 (plain) (blame)
1
2
3
4
5
6
7
8
#!/usr/bin/env sh
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