From 7be9eb867aa159fdf38958a22825ba1e36c70161 Mon Sep 17 00:00:00 2001 From: Shane Date: Mon, 22 Jan 2024 08:19:41 -0800 Subject: [PATCH] Update add-new-template --- .github/workflows/add-new-template | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/add-new-template b/.github/workflows/add-new-template index 3137d129..9d0aba98 100644 --- a/.github/workflows/add-new-template +++ b/.github/workflows/add-new-template @@ -191,3 +191,11 @@ jobs: pac solution sync --processCanvasApps dotnet build /p:configuration=Release ${{ github.event.inputs.solution_name }}.cdsproj shell: pwsh + + #Checkout to a local user branch + - name: Checkout to a new branch and set branch name + run: | + $branchName = "auto_pipeline/${{ github.event.inputs.solution_name }}-${{ steps.date.outputs.branch_datetime }}" + git checkout -b $branchName + echo "BRANCH_NAME=$branchName" | Out-File -Append -Encoding utf8 $env:GITHUB_ENV + shell: pwsh