Skip to content

Commit 89ca503

Browse files
committed
Fix syntax error
1 parent 3827e22 commit 89ca503

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/test-replace-string.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,12 @@ jobs:
7474
write-to-file: 'tmp-write-to-file.txt'
7575

7676
- name: Check replaced string
77-
if [[ ! -f tmp-write-to-file.txt ]]; then
78-
echo "!!! Action replace-string failed to create an output file"
79-
fi
80-
output_from_file=$(cat tmp-write-to-file.txt);
81-
if [[ "${output_from_file}" != 'Cranberry and red apple' ]]; then
82-
echo "!!! Action replace-string failed to create an output file with properly replaced string"
83-
fi
77+
shell: bash
78+
run: |
79+
if [[ ! -f tmp-write-to-file.txt ]]; then
80+
echo "!!! Action replace-string failed to create an output file"
81+
fi
82+
output_from_file=$(cat tmp-write-to-file.txt);
83+
if [[ "${output_from_file}" != 'Cranberry and red apple' ]]; then
84+
echo "!!! Action replace-string failed to create an output file with properly replaced string"
85+
fi

0 commit comments

Comments
 (0)