File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 - name : Action-Test
3131 uses : ./
3232 with :
33+ Name : PSModuleTest
3334 Version : 1.0.0
3435 ArtifactName : PSModuleTestDefault
3536 WorkingDirectory : tests/srcTestRepo
4647 - name : Action-Test
4748 uses : ./
4849 with :
50+ Name : PSModuleTest
4951 Version : 1.0.0
5052 ArtifactName : PSModuleTestMinimal
5153 WorkingDirectory : tests/srcMinimalTestRepo
6264 - name : Action-Test
6365 uses : ./
6466 with :
67+ Name : PSModuleTest
6568 Version : 1.0.0
6669 ArtifactName : PSModuleTestWithManifest
6770 WorkingDirectory : tests/srcWithManifestTestRepo
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ description: Build a PowerShell module to the PowerShell Gallery.
33author : PSModule
44
55inputs :
6+ Name :
7+ description : Name of the module to build. Defaults to the repository name.
8+ required : false
69 OutputFolder :
710 description : Path to the folder where the built module is outputted.
811 required : false
3336 id : build
3437 working-directory : ${{ inputs.WorkingDirectory }}
3538 env :
39+ PSMODULE_BUILD_PSMODULE_INPUT_Name : ${{ inputs.Name }}
3640 PSMODULE_BUILD_PSMODULE_INPUT_OutputFolder : ${{ inputs.OutputFolder }}
3741 PSMODULE_BUILD_PSMODULE_INPUT_Version : ${{ inputs.Version }}
3842 PSMODULE_BUILD_PSMODULE_INPUT_Prerelease : ${{ inputs.Prerelease }}
Original file line number Diff line number Diff line change @@ -16,7 +16,11 @@ Set-GitHubLogGroup "Loading helper scripts from [$path]" {
1616$env: GITHUB_REPOSITORY_NAME = $env: GITHUB_REPOSITORY -replace ' .+/'
1717
1818Set-GitHubLogGroup ' Loading inputs' {
19- $moduleName = $env: GITHUB_REPOSITORY_NAME
19+ $moduleName = if ([string ]::IsNullOrEmpty($env: PSMODULE_BUILD_PSMODULE_INPUT_Name )) {
20+ $env: GITHUB_REPOSITORY_NAME
21+ } else {
22+ $env: PSMODULE_BUILD_PSMODULE_INPUT_Name
23+ }
2024 $moduleVersion = $env: PSMODULE_BUILD_PSMODULE_INPUT_Version
2125 $modulePrerelease = $env: PSMODULE_BUILD_PSMODULE_INPUT_Prerelease
2226 $sourceFolderPath = Resolve-Path - Path ' src' | Select-Object - ExpandProperty Path
You can’t perform that action at this time.
0 commit comments