-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.38 KB
/
Module-ActivityLogAlert.yml
File metadata and controls
52 lines (43 loc) · 1.38 KB
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
43
44
45
46
47
48
49
50
51
52
name: ActivityLogAlert 1.0
on:
workflow_dispatch:
push:
paths:
- '.github/workflows/Module-ActivityLogAlert.yml'
- 'Modules/ActivityLogAlert/1.0/**'
- '!*/**/readme.md'
env:
VariableFilePath: global.variables.json
TenantID: ${{ secrets.TENANT_ID }}
AppID: ${{ secrets.APP_ID }}
Subscription: ${{ secrets.SUBSCRIPTION }}
AppSecret: ${{ secrets.APP_SECRET }}
ModulesPath: Modules
ModuleName: ActivityLogAlert
ModuleVersion: '1.0'
jobs:
Validate:
runs-on: 'ubuntu-latest'
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Load variables
uses: AzActions/Variables@v1
- name: Connect to Azure
uses: AzActions/AzConnect@v1
- name: Validate module
uses: AzActions/AzModules@v1
with:
Action: Validate
ParameterFolderPath: ${{ env.ModulesPath }}/${{ env.ModuleName }}/${{ env.ModuleVersion }}/Parameters
- name: Deploy module
id: Deploy
uses: AzActions/AzModules@v1
with:
Action: Deploy
ParameterFolderPath: ${{ env.ModulesPath }}/${{ env.ModuleName }}/${{ env.ModuleVersion }}/Parameters
- name: 'Show Output'
shell: pwsh
run: |
$Output = '${{ steps.Deploy.outputs.Output }}' | ConvertFrom-JSON
$Output.PSObject.Properties | Select Name, Value | Format-Table -Wrap