Skip to content

Commit ef3706a

Browse files
committed
use the latest auzre/powershell@v3
1 parent 893aa84 commit ef3706a

4 files changed

Lines changed: 24 additions & 24 deletions

File tree

.github/workflows/azure-login-integration-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
creds: ${{ secrets.AZURE_CREDENTIALS }}
3838
enable-AzPSSession: true
3939

40-
- uses: azure/powershell@v1
40+
- uses: azure/powershell@v3
4141
with:
4242
inlineScript: "(Get-AzContext).Environment.Name"
4343
azPSVersion: "latest"
@@ -49,7 +49,7 @@ jobs:
4949
enable-AzPSSession: true
5050
allow-no-subscriptions: true
5151

52-
- uses: azure/powershell@v1
52+
- uses: azure/powershell@v3
5353
with:
5454
inlineScript: "(Get-AzContext).Environment.Name"
5555
azPSVersion: "latest"
@@ -87,7 +87,7 @@ jobs:
8787
subscription-id: ${{ secrets.AZURE_SUBSCRIPTIONID }}
8888
enable-AzPSSession: true
8989

90-
- uses: azure/powershell@v1
90+
- uses: azure/powershell@v3
9191
with:
9292
inlineScript: "(Get-AzContext).Environment.Name"
9393
azPSVersion: "latest"
@@ -100,7 +100,7 @@ jobs:
100100
enable-AzPSSession: true
101101
allow-no-subscriptions: true
102102

103-
- uses: azure/powershell@v1
103+
- uses: azure/powershell@v3
104104
with:
105105
inlineScript: "(Get-AzContext).Environment.Name"
106106
azPSVersion: "latest"
@@ -126,4 +126,4 @@ jobs:
126126
127127
- name: Post to slack
128128
shell: bash
129-
run: curl -X POST -H 'Content-type:application/json' --data '{"blocks":[{"type":"section","text":{"type":"mrkdwn","text":"${{steps.slack_report.outputs.report}}"}}]}' https://hooks.slack.com/services/${{SECRETS.SLACK_CHANNEL_SECRET}}
129+
run: curl -X POST -H 'Content-type:application/json' --data '{"blocks":[{"type":"section","text":{"type":"mrkdwn","text":"${{steps.slack_report.outputs.report}}"}}]}' https://hooks.slack.com/services/${{SECRETS.SLACK_CHANNEL_SECRET}}

.github/workflows/azure-login-negative.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
- name: Run Azure PowerShell
5959
id: ps_3
6060
continue-on-error: true
61-
uses: azure/powershell@v1
61+
uses: azure/powershell@v3
6262
with:
6363
azPSVersion: "latest"
6464
inlineScript: |
@@ -186,7 +186,7 @@ jobs:
186186
- name: Run Azure PowerShell
187187
id: ps_8
188188
continue-on-error: true
189-
uses: azure/powershell@v1
189+
uses: azure/powershell@v3
190190
with:
191191
azPSVersion: "latest"
192192
inlineScript: |
@@ -216,7 +216,7 @@ jobs:
216216
- name: Run Azure PowerShell
217217
id: ps_9
218218
continue-on-error: true
219-
uses: azure/powershell@v1
219+
uses: azure/powershell@v3
220220
with:
221221
azPSVersion: "latest"
222222
inlineScript: |
@@ -332,4 +332,4 @@ jobs:
332332
uses: actions/github-script@v7
333333
with:
334334
script: |
335-
core.setFailed('Last action should fail but not. Please check it.')
335+
core.setFailed('Last action should fail but not. Please check it.')

.github/workflows/azure-login-positive.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
az vm list --output none
4848
4949
- name: Run Azure PowerShell
50-
uses: azure/powershell@v2
50+
uses: azure/powershell@v3
5151
with:
5252
azPSVersion: "latest"
5353
inlineScript: |
@@ -69,7 +69,7 @@ jobs:
6969
az account show --output none
7070
7171
- name: Run Azure PowerShell again
72-
uses: azure/powershell@v2
72+
uses: azure/powershell@v3
7373
with:
7474
azPSVersion: "latest"
7575
inlineScript: |
@@ -92,7 +92,7 @@ jobs:
9292
az vm list --output none
9393
9494
- name: Run Azure PowerShell
95-
uses: azure/powershell@v2
95+
uses: azure/powershell@v3
9696
with:
9797
azPSVersion: "latest"
9898
inlineScript: |
@@ -160,7 +160,7 @@ jobs:
160160
az vm list --output none
161161
162162
- name: Run Azure PowerShell
163-
uses: azure/powershell@v2
163+
uses: azure/powershell@v3
164164
with:
165165
azPSVersion: "latest"
166166
inlineScript: |
@@ -183,7 +183,7 @@ jobs:
183183
az account show --output none
184184
185185
- name: Run Azure PowerShell again
186-
uses: azure/powershell@v2
186+
uses: azure/powershell@v3
187187
with:
188188
azPSVersion: "latest"
189189
inlineScript: |
@@ -209,7 +209,7 @@ jobs:
209209
}
210210
211211
- name: Run Azure PowerShell
212-
uses: azure/powershell@v2
212+
uses: azure/powershell@v3
213213
with:
214214
azPSVersion: "latest"
215215
inlineScript: |
@@ -230,7 +230,7 @@ jobs:
230230
az account show --output none
231231
232232
- name: Run Azure PowerShell
233-
uses: azure/powershell@v2
233+
uses: azure/powershell@v3
234234
with:
235235
azPSVersion: "latest"
236236
inlineScript: |
@@ -309,8 +309,8 @@ jobs:
309309
az group list --output none
310310
311311
- name: Run Azure PowerShell again
312-
uses: azure/powershell@v2
312+
uses: azure/powershell@v3
313313
with:
314314
azPSVersion: "latest"
315315
inlineScript: |
316-
$checkResult = Get-AzResourceGroup
316+
$checkResult = Get-AzResourceGroup

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ jobs:
238238
az account show
239239
240240
- name: Azure PowerShell script
241-
uses: azure/powershell@v2
241+
uses: azure/powershell@v3
242242
with:
243243
azPSVersion: "latest"
244244
inlineScript: |
@@ -325,7 +325,7 @@ jobs:
325325
az account show
326326
327327
- name: Azure PowerShell script
328-
uses: azure/powershell@v2
328+
uses: azure/powershell@v3
329329
with:
330330
azPSVersion: "latest"
331331
inlineScript: |
@@ -396,7 +396,7 @@ jobs:
396396
az account show
397397
398398
- name: Azure PowerShell script
399-
uses: azure/powershell@v2
399+
uses: azure/powershell@v3
400400
with:
401401
azPSVersion: "latest"
402402
inlineScript: |
@@ -463,7 +463,7 @@ jobs:
463463
az account show
464464
465465
- name: Azure PowerShell script
466-
uses: azure/powershell@v2
466+
uses: azure/powershell@v3
467467
with:
468468
azPSVersion: "latest"
469469
inlineScript: |
@@ -549,7 +549,7 @@ jobs:
549549
az account show
550550
551551
- name: Run Azure PowerShell
552-
uses: azure/powershell@v2
552+
uses: azure/powershell@v3
553553
with:
554554
azPSVersion: "latest"
555555
inlineScript: |
@@ -705,4 +705,4 @@ provided by the bot. You will only need to do this once across all repos using o
705705

706706
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
707707
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
708-
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
708+
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

0 commit comments

Comments
 (0)