Removes variable for branch name

This commit is contained in:
Andrew Welker
2020-03-17 18:29:23 -06:00
parent d9e243c30d
commit 8474c5c7b7

View File

@@ -114,8 +114,7 @@ jobs:
Remove-Item -Path ./Version Remove-Item -Path ./Version
- name: Copy build output and push - name: Copy build output and push
run: | run: |
$branch = $(${{ env.GITHUB_REF }}) -Replace "refs/heads/"; git checkout -b $($Env:GITHUB_REF -Replace "refs/heads/")
git checkout -b $($branch)
Get-ChildItem -Path "./Build" | Copy-Item -Path ./ Get-ChildItem -Path "./Build" | Copy-Item -Path ./
Remove-Item -Path ./Build -Recurse Remove-Item -Path ./Build -Recurse
git add . git add .