Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
mikogs committed Oct 24, 2023
1 parent 3827e22 commit 89ca503
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/test-replace-string.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,12 @@ jobs:
write-to-file: 'tmp-write-to-file.txt'

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

0 comments on commit 89ca503

Please sign in to comment.