From a51f3e77a2a074258f5684622290aed7553a542b Mon Sep 17 00:00:00 2001 From: Soruk Date: Sat, 11 Feb 2023 22:13:29 +0100 Subject: [PATCH] some changes --- .github/workflows/template-api.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/template-api.yml b/.github/workflows/template-api.yml index 977d7f4..8d2939b 100644 --- a/.github/workflows/template-api.yml +++ b/.github/workflows/template-api.yml @@ -23,8 +23,15 @@ jobs: with: azPSVersion: "3.1.0" inlineScript: | - az deployment group create -n ghactionbgtasks${{ github.sha }} -g ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} --template-file deploy/Services/acr.bicep --parameters acrName=${{secrets.ACR_NAME}} - + $deploymentName = "ghactionbgtasks${{ github.sha }}" + $resourceGroupName = "${{ secrets.AZURE_RESOURCE_GROUP_NAME }}" + $acrName = "${{ secrets.ACR_NAME }}" + + az deployment group create -n "$($deploymentName)" ` + --resource-group "$($resourceGroupName)" ` + --template-file deploy/Services/acr.bicep ` + --parameters acrName="$($acrName)" + - name: Login to ACR uses: docker/login-action@v1 with: