Skip to content

Commit 3efe3f2

Browse files
committed
another try
1 parent 774ea0b commit 3efe3f2

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/azure-dev.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,32 @@ on:
77
- feature/azd-semantickernel
88
- gpickett-patch-6
99
workflow_dispatch:
10-
1110
permissions:
1211
contents: read
1312
id-token: write
1413
pull-requests: write
15-
1614
jobs:
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
2837
uses: microsoft/[email protected]
2938
id: validation
@@ -34,8 +43,7 @@ jobs:
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 }}

0 commit comments

Comments
 (0)