Skip to content

feat: add auto-deploy workflow #18

feat: add auto-deploy workflow

feat: add auto-deploy workflow #18

Workflow file for this run

name: Run Azure Login with OpenID Connect and PowerShell
on: workflow_dispatch:

Check failure on line 2 in .github/workflows/test_login.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test_login.yml

Invalid workflow file

You have an error in your yaml syntax on line 2
#[push]
permissions:
id-token: write
contents: read
jobs:
Windows-latest:
runs-on: windows-latest
steps:
- name: OIDC Login to Azure Public Cloud with AzPowershell (enableAzPSSession true)
uses: azure/login@v1
with:
enable-AzPSSession: true # interestingly this gives subscriptionid error. maybe PSSession is not tested.
auth-type: IDENTITY
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: 'Get resource group with PowerShell action'
uses: azure/powershell@v1
with:
inlineScript: |
Get-AzResourceGroup
azPSVersion: "latest"