Skip to content

Commit b3b253a

Browse files
committed
Don't pass in template version if undefined
1 parent 3b4d1f4 commit b3b253a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/actions/e2e_generate_app/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,10 @@ runs:
1414
using: composite
1515
steps:
1616
- name: Generate new project based on project-key
17-
run: node e2e/scripts/generate-project.js --project-key ${{ inputs.PROJECT_KEY }} --templateVersion ${{ inputs.TEMPLATE_VERSION }}
17+
run: |
18+
COMMAND="node e2e/scripts/generate-project.js --project-key ${{ inputs.PROJECT_KEY }}"
19+
if [[ -n "${{ inputs.TEMPLATE_VERSION }}" ]]; then
20+
COMMAND="$COMMAND --templateVersion ${{ inputs.TEMPLATE_VERSION }}"
21+
fi
22+
$COMMAND
1823
shell: bash

0 commit comments

Comments
 (0)