summaryrefslogtreecommitdiff
path: root/.github/workflows/setup_git.sh
blob: 4eb416720be6be572a80abd9c9a9ac2b9010852c (plain) (blame)
1
2
3
4
5
6
7
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