-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (35 loc) · 890 Bytes
/
Assignment1.yml
File metadata and controls
42 lines (35 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Assignment 1
on:
workflow_dispatch:
push:
branches:
- assignment1
paths:
- 'Assignment1/**'
- '.github/workflows/Assignment1.yml'
permissions:
id-token: write
contents: read
jobs:
list-resources:
runs-on: windows-latest
environment: production
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Azure Login with OIDC
uses: azure/login@v1
with:
client-id: ${{ vars.CLIENT_ID }}
tenant-id: ${{ vars.TENANT_ID }}
subscription-id: ${{ vars.SUBSCRIPTION_ID }}
enable-AzPSSession: true
- name: Run Assignment1 Script
uses: azure/powershell@v1
with:
azPSVersion: 'latest'
inlineScript: |
./Assignment1/Assignment1.ps1
- name: Logout from Azure
if: always()
run: az logout