Compare commits

...

1 commit

Author SHA1 Message Date
Yan Xu
9dfca5820a
use the latest auzre/powershell@v3 (#581) 2026-03-24 10:12:40 +08:00
4 changed files with 24 additions and 24 deletions

View file

@ -37,7 +37,7 @@ jobs:
creds: ${{ secrets.AZURE_CREDENTIALS }} creds: ${{ secrets.AZURE_CREDENTIALS }}
enable-AzPSSession: true enable-AzPSSession: true
- uses: azure/powershell@v1 - uses: azure/powershell@v3
with: with:
inlineScript: "(Get-AzContext).Environment.Name" inlineScript: "(Get-AzContext).Environment.Name"
azPSVersion: "latest" azPSVersion: "latest"
@ -49,7 +49,7 @@ jobs:
enable-AzPSSession: true enable-AzPSSession: true
allow-no-subscriptions: true allow-no-subscriptions: true
- uses: azure/powershell@v1 - uses: azure/powershell@v3
with: with:
inlineScript: "(Get-AzContext).Environment.Name" inlineScript: "(Get-AzContext).Environment.Name"
azPSVersion: "latest" azPSVersion: "latest"
@ -87,7 +87,7 @@ jobs:
subscription-id: ${{ secrets.AZURE_SUBSCRIPTIONID }} subscription-id: ${{ secrets.AZURE_SUBSCRIPTIONID }}
enable-AzPSSession: true enable-AzPSSession: true
- uses: azure/powershell@v1 - uses: azure/powershell@v3
with: with:
inlineScript: "(Get-AzContext).Environment.Name" inlineScript: "(Get-AzContext).Environment.Name"
azPSVersion: "latest" azPSVersion: "latest"
@ -100,7 +100,7 @@ jobs:
enable-AzPSSession: true enable-AzPSSession: true
allow-no-subscriptions: true allow-no-subscriptions: true
- uses: azure/powershell@v1 - uses: azure/powershell@v3
with: with:
inlineScript: "(Get-AzContext).Environment.Name" inlineScript: "(Get-AzContext).Environment.Name"
azPSVersion: "latest" azPSVersion: "latest"

View file

@ -58,7 +58,7 @@ jobs:
- name: Run Azure PowerShell - name: Run Azure PowerShell
id: ps_3 id: ps_3
continue-on-error: true continue-on-error: true
uses: azure/powershell@v1 uses: azure/powershell@v3
with: with:
azPSVersion: "latest" azPSVersion: "latest"
inlineScript: | inlineScript: |
@ -186,7 +186,7 @@ jobs:
- name: Run Azure PowerShell - name: Run Azure PowerShell
id: ps_8 id: ps_8
continue-on-error: true continue-on-error: true
uses: azure/powershell@v1 uses: azure/powershell@v3
with: with:
azPSVersion: "latest" azPSVersion: "latest"
inlineScript: | inlineScript: |
@ -216,7 +216,7 @@ jobs:
- name: Run Azure PowerShell - name: Run Azure PowerShell
id: ps_9 id: ps_9
continue-on-error: true continue-on-error: true
uses: azure/powershell@v1 uses: azure/powershell@v3
with: with:
azPSVersion: "latest" azPSVersion: "latest"
inlineScript: | inlineScript: |

View file

@ -47,7 +47,7 @@ jobs:
az vm list --output none az vm list --output none
- name: Run Azure PowerShell - name: Run Azure PowerShell
uses: azure/powershell@v2 uses: azure/powershell@v3
with: with:
azPSVersion: "latest" azPSVersion: "latest"
inlineScript: | inlineScript: |
@ -69,7 +69,7 @@ jobs:
az account show --output none az account show --output none
- name: Run Azure PowerShell again - name: Run Azure PowerShell again
uses: azure/powershell@v2 uses: azure/powershell@v3
with: with:
azPSVersion: "latest" azPSVersion: "latest"
inlineScript: | inlineScript: |
@ -92,7 +92,7 @@ jobs:
az vm list --output none az vm list --output none
- name: Run Azure PowerShell - name: Run Azure PowerShell
uses: azure/powershell@v2 uses: azure/powershell@v3
with: with:
azPSVersion: "latest" azPSVersion: "latest"
inlineScript: | inlineScript: |
@ -160,7 +160,7 @@ jobs:
az vm list --output none az vm list --output none
- name: Run Azure PowerShell - name: Run Azure PowerShell
uses: azure/powershell@v2 uses: azure/powershell@v3
with: with:
azPSVersion: "latest" azPSVersion: "latest"
inlineScript: | inlineScript: |
@ -183,7 +183,7 @@ jobs:
az account show --output none az account show --output none
- name: Run Azure PowerShell again - name: Run Azure PowerShell again
uses: azure/powershell@v2 uses: azure/powershell@v3
with: with:
azPSVersion: "latest" azPSVersion: "latest"
inlineScript: | inlineScript: |
@ -209,7 +209,7 @@ jobs:
} }
- name: Run Azure PowerShell - name: Run Azure PowerShell
uses: azure/powershell@v2 uses: azure/powershell@v3
with: with:
azPSVersion: "latest" azPSVersion: "latest"
inlineScript: | inlineScript: |
@ -230,7 +230,7 @@ jobs:
az account show --output none az account show --output none
- name: Run Azure PowerShell - name: Run Azure PowerShell
uses: azure/powershell@v2 uses: azure/powershell@v3
with: with:
azPSVersion: "latest" azPSVersion: "latest"
inlineScript: | inlineScript: |
@ -309,7 +309,7 @@ jobs:
az group list --output none az group list --output none
- name: Run Azure PowerShell again - name: Run Azure PowerShell again
uses: azure/powershell@v2 uses: azure/powershell@v3
with: with:
azPSVersion: "latest" azPSVersion: "latest"
inlineScript: | inlineScript: |

View file

@ -238,7 +238,7 @@ jobs:
az account show az account show
- name: Azure PowerShell script - name: Azure PowerShell script
uses: azure/powershell@v2 uses: azure/powershell@v3
with: with:
azPSVersion: "latest" azPSVersion: "latest"
inlineScript: | inlineScript: |
@ -325,7 +325,7 @@ jobs:
az account show az account show
- name: Azure PowerShell script - name: Azure PowerShell script
uses: azure/powershell@v2 uses: azure/powershell@v3
with: with:
azPSVersion: "latest" azPSVersion: "latest"
inlineScript: | inlineScript: |
@ -396,7 +396,7 @@ jobs:
az account show az account show
- name: Azure PowerShell script - name: Azure PowerShell script
uses: azure/powershell@v2 uses: azure/powershell@v3
with: with:
azPSVersion: "latest" azPSVersion: "latest"
inlineScript: | inlineScript: |
@ -463,7 +463,7 @@ jobs:
az account show az account show
- name: Azure PowerShell script - name: Azure PowerShell script
uses: azure/powershell@v2 uses: azure/powershell@v3
with: with:
azPSVersion: "latest" azPSVersion: "latest"
inlineScript: | inlineScript: |
@ -549,7 +549,7 @@ jobs:
az account show az account show
- name: Run Azure PowerShell - name: Run Azure PowerShell
uses: azure/powershell@v2 uses: azure/powershell@v3
with: with:
azPSVersion: "latest" azPSVersion: "latest"
inlineScript: | inlineScript: |