Skip to content

Commit

Permalink
Merge pull request compas-dev#10 from compas-dev/action_prefix
Browse files Browse the repository at this point in the history
added prefix input to action.yml
  • Loading branch information
chenkasirer authored May 8, 2023
2 parents ad34933 + a9bd354 commit 594edab
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,23 @@ inputs:
target:
description: 'Target directory for ghuser files'
required: true
prefix:
description: 'Add this prefix to the name of each generated component'
required: false
runs:
using: 'composite'
steps:
- run: nuget install Grasshopper -OutputDirectory ./lib -source https://api.nuget.org/v3/index.json
shell: pwsh
- run: ipy ${{ github.action_path }}/componentize.py ${{ inputs.source }} ${{ inputs.target }} --ghio ./lib
- run: |
$command="ipy"
$params="${{ github.action_path }}/componentize.py", "${{ inputs.source }}", "${{ inputs.target }}", "--ghio", "./lib"
$prefix="${{ inputs.prefix }}"
if( $prefix )
{
$params=$params + "--prefix", "$prefix"
}
& $command $params
shell: pwsh
branding:
icon: 'box'
Expand Down

0 comments on commit 594edab

Please sign in to comment.