File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed
Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change 77 - feature/azd-semantickernel
88 - gpickett-patch-6
99 workflow_dispatch :
10-
1110permissions :
1211 contents : read
1312 id-token : write
1413 pull-requests : write
15-
1614jobs :
1715 template_validation_job :
1816 runs-on : ubuntu-latest
1917 name : Template validation
20-
2118 steps :
2219 # Step 1: Checkout the code from your repository
2320 - name : Checkout code
2421 uses : actions/checkout@v4
2522
26- # Step 2: Validate the Azure template using microsoft/template-validation-action
23+ # Step 2: Set up Python environment
24+ - name : Set up Python
25+ uses : actions/setup-python@v4
26+ with :
27+ python-version : ' 3.9'
28+
29+ # Step 3: Install required Python packages
30+ - name : Install dependencies
31+ run : |
32+ python -m pip install --upgrade pip
33+ pip install azure-mgmt-resource azure-identity azure-core
34+
35+ # Step 4: Validate the Azure template using microsoft/template-validation-action
2736 - name : Validate Azure Template
28372938 id : validation
3443 AZURE_ENV_NAME : ${{ secrets.AZURE_ENV_NAME }}
3544 AZURE_LOCATION : ${{ secrets.AZURE_LOCATION }}
3645 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37-
38-
39- # Step 3: Print the result of the validation
46+
47+ # Step 5: Print the result of the validation
4048 - name : Print result
41- run : cat ${{ steps.validation.outputs.resultFile }}
49+ run : cat ${{ steps.validation.outputs.resultFile }}
You can’t perform that action at this time.
0 commit comments