Skip to content

Commit 04dd5dd

Browse files
Add setup for Azure Developer CLI with fallback installation using winget
1 parent d0483f0 commit 04dd5dd

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/deploy-v2-windows.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,17 @@ jobs:
285285
# Azure CLI is pre-installed on Windows GitHub runners
286286
az --version # Verify installation
287287
288+
- name: Try setup-azd action
289+
uses: Azure/setup-azd@v1.0.0
290+
continue-on-error: true
291+
292+
- name: If azd missing, install via winget
293+
if: ${{ failure() || steps.setup-azd.outcome != 'success' }}
294+
run: |
295+
winget install microsoft.azd --silent --accept-package-agreements --accept-source-agreements
296+
- name: Verify azd
297+
run: azd --version
298+
288299
- name: Login to Azure
289300
shell: bash
290301
run: |

0 commit comments

Comments
 (0)