adds $() for branch name and fixes env for getting ref

This commit is contained in:
Andrew Welker
2020-03-17 18:20:51 -06:00
parent 72fb11b790
commit d9e243c30d

View File

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