AzurePowerShellScript #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# File: ./scripts/run_azps_cmdlets.ps1 | |
name: AzurePowerShellScript | |
on: [workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check Out | |
uses: actions/checkout@v4 | |
with: | |
ref: main # Specify the branch or commit | |
path: ./3TierApp # Specify the folder path if the script doesn't need the entire repo for execution | |
- name: Login Azure | |
uses: azure/login@v2 | |
with: | |
creds: ${{secrets.AZURE_CREDENTIALS}} | |
enable-AzPSSession: true | |
- name: Run Azure PowerShell Script File | |
uses: azure/powershell@v2 | |
with: | |
inlineScript: | #GetRG.ps1 | |
Get-ChildItem | |
azPSVersion: "latest" |