From b6466d80efd392041be5c775f83dfb798c63fd22 Mon Sep 17 00:00:00 2001 From: Maria Hutt Date: Fri, 21 Jul 2023 10:20:28 -0700 Subject: [PATCH] refactor(ga-screenshots): fix if statement --- .github/workflows/actions/test-core-screenshot/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/actions/test-core-screenshot/action.yml b/.github/workflows/actions/test-core-screenshot/action.yml index 4029983b9b..f3acb2bf9e 100644 --- a/.github/workflows/actions/test-core-screenshot/action.yml +++ b/.github/workflows/actions/test-core-screenshot/action.yml @@ -35,9 +35,9 @@ runs: # - run all the file paths that are in the component folder. For example: if the component is "item", then the test will run all the file paths that are in the "src/components/item/" folder. run: | if [ -n "${{ inputs.component }}" ] && [ "${{ inputs.component-folder }}" == "true" ]; then - echo "testFile=$(echo '${{ inputs.component }}')" >> $GITHUB_OUTPUT - elif [ -n "${{ inputs.component }}" ]; then echo "testFile=$(echo 'src/components/${{ inputs.component }}/')" >> $GITHUB_OUTPUT + elif [ -n "${{ inputs.component }}" ]; then + echo "testFile=$(echo '${{ inputs.component }}')" >> $GITHUB_OUTPUT else echo "testFile=$(echo '')" >> $GITHUB_OUTPUT fi