Skip to content

Commit 712d362

Browse files
committed
fixed variable syntax
1 parent 6962f1e commit 712d362

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

action.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ runs:
1616
- run: nuget install Grasshopper -OutputDirectory ./lib -source https://api.nuget.org/v3/index.json
1717
shell: pwsh
1818
- run: |
19-
command="ipy ${{ github.action_path }}/componentize.py ${{ inputs.source }} ${{ inputs.target }} --ghio ./lib"
20-
prefix="${{ inputs.prefix }}"
19+
$command="ipy"
20+
$params="${{ github.action_path }}/componentize.py", "${{ inputs.source }}", "${{ inputs.target }}", "--ghio", "./lib"
21+
$prefix="${{ inputs.prefix }}"
2122
if( $null -ne $prefix )
2223
{
23-
command="$command --prefix $prefix"
24+
$params=$params + "--prefix", "$prefix"
2425
}
25-
$command
26+
& $command $params
2627
shell: pwsh
2728
branding:
2829
icon: 'box'

0 commit comments

Comments
 (0)