Skip to content

Commit 99a075d

Browse files
authored
Merge pull request #135 from microsoft/gpickett-patch-6
Update azure-dev-validation.yml
2 parents fabaafd + 3d3a8c2 commit 99a075d

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/azure-dev-validation.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,36 @@ on:
55
- dev
66
- main
77
- feature/azd-semantickernel
8-
workflow_dispatch:
8+
workflow_dispatch:
9+
910
permissions:
1011
contents: read
1112
id-token: write
1213
pull-requests: write
14+
1315
jobs:
1416
template_validation_job:
1517
runs-on: ubuntu-latest
1618
name: Template validation
19+
1720
steps:
1821
# Step 1: Checkout the code from your repository
1922
- name: Checkout code
2023
uses: actions/checkout@v4
21-
22-
# Step 2: Azure login using OIDC
23-
- name: Azure login
24-
uses: azure/login@v1
25-
with:
26-
client-id: ${{ secrets.AZURE_CLIENT_ID }}
27-
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
28-
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
29-
30-
# Step 3: Validate the Azure template using microsoft/template-validation-action
24+
25+
# Step 2: Validate the Azure template using microsoft/template-validation-action
3126
- name: Validate Azure Template
3227
uses: microsoft/[email protected]
3328
id: validation
3429
env:
30+
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
31+
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
32+
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
3533
AZURE_ENV_NAME: ${{ secrets.AZURE_ENV_NAME }}
3634
AZURE_LOCATION: ${{ secrets.AZURE_LOCATION }}
3735
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
39-
# Step 4: Print the result of the validation
36+
37+
38+
# Step 3: Print the result of the validation
4039
- name: Print result
4140
run: cat ${{ steps.validation.outputs.resultFile }}

0 commit comments

Comments
 (0)