summaryrefslogtreecommitdiff
path: root/.github/workflows/setup_git.ps1
diff options
context:
space:
mode:
authorJohn Parent <john.parent@kitware.com>2022-01-25 17:29:17 -0500
committerPeter Scheibel <scheibel1@llnl.gov>2022-03-17 09:01:01 -0700
commit90c773488c59e57c19ecca5635c1ae7f70e56076 (patch)
tree92afff7ea0751cb9b3a41bd33ded560b5c00fe82 /.github/workflows/setup_git.ps1
parente65d3d14b4a7a9a9667b006bea1f9f2eafc69472 (diff)
downloadspack-90c773488c59e57c19ecca5635c1ae7f70e56076.tar.gz
spack-90c773488c59e57c19ecca5635c1ae7f70e56076.tar.bz2
spack-90c773488c59e57c19ecca5635c1ae7f70e56076.tar.xz
spack-90c773488c59e57c19ecca5635c1ae7f70e56076.zip
Add Github Actions for Windows (#24504)
Setup Installer CI (#25184), (#25191) Co-authored-by: Zack Galbreath <zack.galbreath@kitware.com> Co-authored-by: lou.lawrence@kitware.com <lou.lawrence@kitware.com> Co-authored-by: Betsy McPhail <betsy.mcphail@kitware.com>
Diffstat (limited to '.github/workflows/setup_git.ps1')
-rw-r--r--.github/workflows/setup_git.ps116
1 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/setup_git.ps1 b/.github/workflows/setup_git.ps1
new file mode 100644
index 0000000000..19d3b81b97
--- /dev/null
+++ b/.github/workflows/setup_git.ps1
@@ -0,0 +1,16 @@
+# (c) 2021 Lawrence Livermore National Laboratory
+
+Set-Location spack
+
+git config --global user.email "spack@example.com"
+git config --global user.name "Test User"
+
+if ($(git branch --show-current) -ne "develop")
+{
+ git branch develop origin/develop
+}
+
+if ($(git branch --show-current) -ne "features/windows-support")
+{
+ git branch features/windows-support origin/features/windows-support
+}