File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,15 @@ $($gitHubEvent | ConvertTo-Json -Depth 100)
52
52
::endgroup::
53
53
"@ | Out-Host
54
54
55
- if ($env: GITHUB_ACTION_PATH ) {
55
+ $PSD1Found = Get-ChildItem - Recurse - Filter " *.psd1" | Where-Object Name -eq ' PipeScript.psd1' | Select-Object - First 1
56
+
57
+ if ($PSD1Found ) {
58
+ $PipeScriptModulePath = $PSD1Found
59
+ Import-Module $psd1Path - Force - PassThru | Out-Host
60
+ } elseif ($env: GITHUB_ACTION_PATH ) {
56
61
$PipeScriptModulePath = Join-Path $env: GITHUB_ACTION_PATH ' PipeScript.psd1'
57
62
if (Test-path $PipeScriptModulePath ) {
58
- Import-Module $PipeScriptModulePath - Force - PassThru | Out-String
63
+ Import-Module $PipeScriptModulePath - Force - PassThru | Out-Host
59
64
} else {
60
65
throw " PipeScript not found"
61
66
}
Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ runs:
48
48
shell : pwsh
49
49
env :
50
50
SkipBuild : ${{inputs.SkipBuild}}
51
+ UserName : ${{inputs.UserName}}
51
52
CommitMessage : ${{inputs.CommitMessage}}
52
- PipeScript : ${{inputs.PipeScript}}
53
53
UserEmail : ${{inputs.UserEmail}}
54
- UserName : ${{inputs.UserName }}
54
+ PipeScript : ${{inputs.PipeScript }}
55
55
run : |
56
56
$Parameters = @{}
57
57
$Parameters.PipeScript = ${env:PipeScript}
@@ -120,10 +120,15 @@ runs:
120
120
::endgroup::
121
121
"@ | Out-Host
122
122
123
- if ($env:GITHUB_ACTION_PATH) {
123
+ $PSD1Found = Get-ChildItem -Recurse -Filter "*.psd1" | Where-Object Name -eq 'PipeScript.psd1' | Select-Object -First 1
124
+
125
+ if ($PSD1Found) {
126
+ $PipeScriptModulePath = $PSD1Found
127
+ Import-Module $psd1Path -Force -PassThru | Out-Host
128
+ } elseif ($env:GITHUB_ACTION_PATH) {
124
129
$PipeScriptModulePath = Join-Path $env:GITHUB_ACTION_PATH 'PipeScript.psd1'
125
130
if (Test-path $PipeScriptModulePath) {
126
- Import-Module $PipeScriptModulePath -Force -PassThru | Out-String
131
+ Import-Module $PipeScriptModulePath -Force -PassThru | Out-Host
127
132
} else {
128
133
throw "PipeScript not found"
129
134
}
You can’t perform that action at this time.
0 commit comments