Skip to content

Commit f5039bf

Browse files
latest version update
1 parent ba917a0 commit f5039bf

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed
Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
name: Azure Template Validation
1+
name: Azure Template Validation
22
on:
3-
# workflow_dispatch:
4-
push:
5-
branches:
6-
- main
7-
- vee-pipeline-fixes
3+
push:
4+
branches:
5+
- main
6+
- vee-pipeline-fixes
7+
88
permissions:
99
contents: read
1010
id-token: write
1111
pull-requests: write
12+
1213
jobs:
1314
template_validation_job:
1415
runs-on: ubuntu-latest
@@ -18,10 +19,14 @@ jobs:
1819
# Step 1: Checkout the code from your repository
1920
- name: Checkout code
2021
uses: actions/checkout@v4
22+
2123
# Step 2: Validate the Azure template using microsoft/template-validation-action
2224
- name: Validate Azure Template
23-
uses: microsoft/template-validation-action@v0.3.5
25+
uses: microsoft/template-validation-action@Latest
2426
id: validation
27+
with:
28+
# disable auto test generation that breaks validation
29+
validateTests: none
2530
env:
2631
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
2732
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
@@ -30,6 +35,8 @@ jobs:
3035
AZURE_ENV_NAME: ${{ secrets.AZURE_ENV_NAME }}
3136
AZURE_LOCATION: ${{ secrets.AZURE_LOCATION }}
3237
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
3339
# Step 3: Print the result of the validation
3440
- name: Print result
35-
run: cat ${{ steps.validation.outputs.resultFile }}
41+
run: cat ${{ steps.validation.outputs.resultFile }}
42+

0 commit comments

Comments
 (0)