Skip to content

Commit

Permalink
if(statement): align for each actions
Browse files Browse the repository at this point in the history
  • Loading branch information
autocloudarc committed Jan 9, 2024
1 parent 66209d0 commit 9bb59a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exercises-dev/.github/workflows/deploy-az-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
# enable-AzPSSession: true
# enable-AzPSSession: true

- name: Install Pre-Requisites for Self-Hosted Runner if required
run: |
Expand All @@ -86,7 +86,7 @@ jobs:
az account show
az account set --subscription -s ${{ secrets.AZURE_SUBSCRIPTION_ID }}
az stack sub create --name ${{ env.stackname }} --location ${{ env.location }} --template-file ${{ env.templateFile }} --parameters ${{ env.templateParamFile }} --deny-settings-mode none --delete-all --yes --verbose
if: ${{ env.deploy == 'true' }}
if: ${{ env.deploy == 'true' }}

- name: rollback
uses: azure/CLI@v1
Expand All @@ -99,7 +99,7 @@ jobs:
az account show
az account set --subscription -s ${{ secrets.AZURE_SUBSCRIPTION_ID }}
az stack sub delete --name ${{ env.stackname }} --location ${{ env.location }} --yes --verbose
if: ${{ env.rollback == 'true' }}
if: ${{ env.rollback == 'true' }}

- name: deployTemplateSpec
uses: azure/CLI@v1
Expand All @@ -113,4 +113,4 @@ jobs:
sleep 20
id=$(az ts show --name ${{ env.templateSpecName }} --resource-group ${{ env.rgpIacName }} --version ${{ env.templateSpecVersion }} --query 'id')
az deployment group create --resource-group ${{ env.rgpIacName }} --template-spec $id --parameters ${{ env.templateSpecParamFile }} --verbose
if: ${{ env.deployTemplateSpec == 'true' }}
if: ${{ env.deployTemplateSpec == 'true' }}

0 comments on commit 9bb59a2

Please sign in to comment.