Skip to content

Commit aeb8289

Browse files
refactor: update action.yml to define Get-PSModuleSettings with appropriate inputs and outputs
1 parent 902b6e2 commit aeb8289

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed

action.yml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
name: Template-Action
2-
description: A template action for GitHub Actions using PowerShell
1+
name: Get-PSModuleSettings
2+
description: Get settings for a PowerShell module workflow
33
author: PSModule
44
branding:
5-
icon: upload-cloud
6-
color: white
5+
icon: settings
6+
color: blue
77

88
inputs:
9-
Subject:
10-
description: The subject to greet
9+
SettingsPath:
10+
description: Path to the settings file (json, yaml/yml, or psd1)
1111
required: false
12-
default: World
1312
Debug:
1413
description: Enable debug output.
1514
required: false
@@ -30,15 +29,28 @@ inputs:
3029
required: false
3130
default: ${{ github.workspace }}
3231

32+
outputs:
33+
Settings:
34+
description: The complete settings object as JSON, including test suites
35+
value: ${{ fromJson(steps.Get-PSModuleSettings.outputs.result).Settings }}
36+
3337
runs:
3438
using: composite
3539
steps:
36-
- name: Template-Action
40+
- name: Get-PSModuleSettings
3741
uses: PSModule/GitHub-Script@8b9d2739d6896975c0e5448d2021ae2b94b6766a # v1.7.6
42+
id: Get-PSModuleSettings
3843
env:
39-
PSMOUDLE_TEMPLATE_ACTION_INPUT_Subject: ${{ inputs.Subject }}
44+
PSMODULE_GET_SETTINGS_INPUT_SettingsPath: ${{ inputs.SettingsPath }}
45+
PSMODULE_GET_SETTINGS_INPUT_Debug: ${{ inputs.Debug }}
46+
PSMODULE_GET_SETTINGS_INPUT_Verbose: ${{ inputs.Verbose }}
47+
PSMODULE_GET_SETTINGS_INPUT_Version: ${{ inputs.Version }}
48+
PSMODULE_GET_SETTINGS_INPUT_Prerelease: ${{ inputs.Prerelease }}
49+
PSMODULE_GET_SETTINGS_INPUT_WorkingDirectory: ${{ inputs.WorkingDirectory }}
4050
with:
41-
Name: Template-Action
51+
Name: Get-PSModuleSettings
52+
ShowInfo: false
53+
ShowOutput: true
4254
Debug: ${{ inputs.Debug }}
4355
Prerelease: ${{ inputs.Prerelease }}
4456
Verbose: ${{ inputs.Verbose }}

0 commit comments

Comments
 (0)