generated from PSModule/Template-Action
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
63 lines (60 loc) · 2.09 KB
/
action.yml
File metadata and controls
63 lines (60 loc) · 2.09 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
53
54
55
56
57
58
59
60
61
62
63
name: Get-PSModuleSettings
description: Get settings for a PowerShell module workflow
author: PSModule
branding:
icon: settings
color: blue
inputs:
Name:
description: Name of the module.
required: false
SettingsPath:
description: Path to the settings file (json, yaml/yml, or psd1)
required: false
Debug:
description: Enable debug output.
required: false
default: 'false'
Verbose:
description: Enable verbose output.
required: false
default: 'false'
Version:
description: Specifies the version of the GitHub module to be installed. The value must be an exact version.
required: false
Prerelease:
description: Allow prerelease versions if available.
required: false
default: 'false'
WorkingDirectory:
description: The working directory where the script will run from.
required: false
default: ${{ github.workspace }}
outputs:
Settings:
description: The complete settings object as JSON, including test suites
value: ${{ fromJson(steps.Get-PSModuleSettings.outputs.result).Settings }}
runs:
using: composite
steps:
- name: Get-PSModuleSettings
uses: PSModule/GitHub-Script@0097f3bbe3f413f3b577b9bcc600727b0ca3201a # v1.7.10
id: Get-PSModuleSettings
env:
PSMODULE_GET_SETTINGS_INPUT_Name: ${{ inputs.Name }}
PSMODULE_GET_SETTINGS_INPUT_SettingsPath: ${{ inputs.SettingsPath }}
PSMODULE_GET_SETTINGS_INPUT_Debug: ${{ inputs.Debug }}
PSMODULE_GET_SETTINGS_INPUT_Verbose: ${{ inputs.Verbose }}
PSMODULE_GET_SETTINGS_INPUT_Version: ${{ inputs.Version }}
PSMODULE_GET_SETTINGS_INPUT_Prerelease: ${{ inputs.Prerelease }}
PSMODULE_GET_SETTINGS_INPUT_WorkingDirectory: ${{ inputs.WorkingDirectory }}
with:
Name: Get-PSModuleSettings
ShowInfo: false
ShowOutput: true
Debug: ${{ inputs.Debug }}
Prerelease: ${{ inputs.Prerelease }}
Verbose: ${{ inputs.Verbose }}
Version: ${{ inputs.Version }}
WorkingDirectory: ${{ inputs.WorkingDirectory }}
Script: ${{ github.action_path }}/src/main.ps1