-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
45 lines (42 loc) · 1.3 KB
/
action.yml
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
name: 'Create PowerShell Manifest'
description: 'A GitHub Action to create a PowerShell manifest and optionally handle required assemblies.'
author: 'Jeff Patton'
branding:
icon: 'activity'
color: 'blue'
inputs:
ModuleName:
description: 'The name of the PowerShell module'
type: string
required: true
Source:
description: 'The source directory containing the module (relative to the workspace)'
type: string
required: false
default: ''
Output:
description: 'The output directory for the manifest (relative to the workspace)'
type: string
required: false
default: ''
Imports:
description: 'Comma-separated list of import folders'
type: string
required: true
Assemblies:
description: 'Comma-separated list of assembly directories'
type: string
required: false
default: ''
Debug:
description: 'Enable debug mode'
type: string
required: false
default: 'false'
runs:
using: 'composite'
steps:
- name: Run PowerShell script
shell: pwsh
run: |
& $env:GITHUB_ACTION_PATH\\createpowershellmanifest.ps1 -ModuleName '${{ inputs.ModuleName }}' -Source '${{ inputs.Source }}' -Output '${{ inputs.Output }}' -Imports '${{ inputs.Imports }}' -Assemblies '${{ inputs.Assemblies }}' -Debug '${{ inputs.Debug }}'