Skip to content

Commit 2fc9021

Browse files
authored
Update action.yaml
1 parent c95f5a5 commit 2fc9021

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

action.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,18 @@ runs:
3030
- name: Run Ahk2Exe
3131
shell: pwsh
3232
run: |
33-
$params = ''
33+
$command = 'ahk2exe.exe /silent '
3434
if('${{inputs.in}}' -ne ''){
35-
$params += '/in "${{inputs.in}}" '
35+
$command += '/in "${{inputs.in}}" '
3636
}
3737
if('${{inputs.out}}' -ne ''){
38-
$params += '/out "${{inputs.out}}" '
38+
$command += '/out "${{inputs.out}}" '
3939
}
4040
if('${{inputs.icon}}' -ne ''){
41-
$params += '/icon "${{inputs.icon}}" '
41+
$command += '/icon "${{inputs.icon}}" '
4242
}
43-
ahk2exe.exe /silent $params | Write-Output
43+
$command += "| Write-Output"
44+
Invoke-Expression $command
4445
4546
branding:
4647
color: green

0 commit comments

Comments
 (0)