File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 8080 working-directory : ${{ inputs.WorkingDirectory }}
8181 env :
8282 PSMODULE_GITHUB_SCRIPT_INPUT_Name : ${{ inputs.Name }}
83+ PSMODULE_GITHUB_SCRIPT_INPUT_Script : ${{ inputs.Script }}
8384 PSMODULE_GITHUB_SCRIPT_INPUT_Token : ${{ inputs.Token }}
8485 PSMODULE_GITHUB_SCRIPT_INPUT_ClientID : ${{ inputs.ClientID }}
8586 PSMODULE_GITHUB_SCRIPT_INPUT_PrivateKey : ${{ inputs.PrivateKey }}
@@ -94,14 +95,16 @@ runs:
9495 PSMODULE_GITHUB_SCRIPT_INPUT_ErrorView : ${{ inputs.ErrorView }}
9596 PSMODULE_GITHUB_SCRIPT_INPUT_PreserveCredentials : ${{ inputs.PreserveCredentials }}
9697 run : |
97- # ${{ inputs.Name }}
9898 $ErrorView = $env:PSMODULE_GITHUB_SCRIPT_INPUT_ErrorView
9999 $DebugPreference = $env:PSMODULE_GITHUB_SCRIPT_INPUT_Debug -eq 'true' ? 'Continue' : 'SilentlyContinue'
100100 $VerbosePreference = $env:PSMODULE_GITHUB_SCRIPT_INPUT_Verbose -eq 'true' ? 'Continue' : 'SilentlyContinue'
101101 try {
102102 ${{ github.action_path }}/scripts/init.ps1
103103 ${{ github.action_path }}/scripts/info.ps1
104- ${{ inputs.Script }}
104+ $scriptText = $env:PSMODULE_GITHUB_SCRIPT_INPUT_Script
105+ if (-not [string]::IsNullOrWhiteSpace($scriptText)) {
106+ & ([scriptblock]::Create($scriptText))
107+ }
105108 ${{ github.action_path }}/scripts/outputs.ps1
106109 }
107110 finally {
You can’t perform that action at this time.
0 commit comments