Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:

- name: 'Checking out repo code'
uses: actions/checkout@v2
uses: actions/checkout@v6

- name: 'Validate build'
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ jobs:
steps:

- name: Login via Az module
uses: azure/login@v2
uses: azure/login@v3
with:
creds: ${{secrets.AZURE_CREDENTIALS}}
enable-AzPSSession: true

- name: Run Azure PowerShell inline script
uses: azure/powershell@v2
uses: azure/powershell@v3
with:
inlineScript: |
Get-AzVM -ResourceGroupName "ResourceGroup11"
Expand Down Expand Up @@ -70,16 +70,16 @@ jobs:
steps:

- name: Check Out
uses: actions/checkout@v3
uses: actions/checkout@v6

- name: Login Azure
uses: azure/login@v2
uses: azure/login@v3
with:
creds: ${{secrets.AZURE_CREDENTIALS}}
enable-AzPSSession: true

- name: Run Azure PowerShell Script File
uses: azure/powershell@v2
uses: azure/powershell@v3
with:
inlineScript: ./scripts/run_azps_cmdlets.ps1
azPSVersion: "latest"
Expand All @@ -90,7 +90,7 @@ You can also run the script file with parameters. For example:

```yaml
- name: Run Azure PowerShell Script File
uses: azure/powershell@v2
uses: azure/powershell@v3
with:
inlineScript: ./scripts/run_azps_cmdlets.ps1 myresourcegroup myresourcename
azPSVersion: "latest"
Expand All @@ -100,7 +100,7 @@ or

```yaml
- name: Run Azure PowerShell Script File
uses: azure/powershell@v2
uses: azure/powershell@v3
with:
inlineScript: ./scripts/run_azps_cmdlets.ps1 -ResourceGroupName myresourcegroup -ResourceName myresourcename
azPSVersion: "latest"
Expand All @@ -110,14 +110,14 @@ or

```yaml
- name: Login to Azure US Gov Cloud with Az Powershell
uses: azure/login@v2
uses: azure/login@v3
with:
creds: ${{ secrets.AZURE_US_GOV_CREDENTIALS }}
environment: 'AzureUSGovernment'
enable-AzPSSession: true

- name: Run powershell command in US Gov Cloud
uses: azure/powershell@v2
uses: azure/powershell@v3
with:
inlineScript: "Get-AzContext"
azPSVersion: "latest"
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ branding:
icon: 'log-in'
color: 'blue'
runs:
using: 'node20'
main: 'lib/main.js'
using: 'node24'
main: 'lib/index.js'
Loading
Loading