Skip to content

Commit 259f8e4

Browse files
committed
fix: piping input through env variable instead of shell expansion
1 parent f977ed5 commit 259f8e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/actions/run-testacc/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ runs:
99
steps:
1010
- name: Run tests
1111
shell: bash
12+
env:
13+
TEST_PATTERN: ${{ inputs.test_pattern }}
1214
run: |
1315
set -o pipefail
14-
EXECUTE_TESTS=true make testacc TESTARGS='-run="${{ inputs.test_pattern }}"' 2>&1 | tee test_output.txt
16+
EXECUTE_TESTS=true make testacc TESTARGS="-run=\"$TEST_PATTERN\"" 2>&1 | tee test_output.txt
1517
if ! grep -q "=== RUN" test_output.txt; then
1618
echo "ERROR: No tests matched the pattern. Please check the -run argument."
1719
exit 1

0 commit comments

Comments
 (0)