Skip to content

Commit 6d89448

Browse files
committed
Don't pass in templateVersion if undefined
1 parent b3b253a commit 6d89448

File tree

1 file changed

+7
-2
lines changed
  • .github/actions/e2e_validate_generated_app

1 file changed

+7
-2
lines changed

.github/actions/e2e_validate_generated_app/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ inputs:
1212
runs:
1313
using: composite
1414
steps:
15-
- name: Validate generated project based on project-key
16-
run: node e2e/scripts/validate-generated-project.js ${{ inputs.PROJECT_KEY }} --templateVersion ${{ inputs.TEMPLATE_VERSION }}
15+
- name: Validate generated project
16+
run: |
17+
COMMAND="node e2e/scripts/validate-generated-project.js ${{ inputs.PROJECT_KEY }}"
18+
if [[ -n "${{ inputs.TEMPLATE_VERSION }}" ]]; then
19+
COMMAND="$COMMAND --templateVersion ${{ inputs.TEMPLATE_VERSION }}"
20+
fi
21+
$COMMAND
1722
shell: bash

0 commit comments

Comments
 (0)