From 204ed812d0490d625769b1b378ee1a230c2c5fcc Mon Sep 17 00:00:00 2001 From: James Cheng Date: Fri, 21 Jan 2022 08:19:23 -0800 Subject: [PATCH] String literals need to be inside single-quotes (#319) * String literals need to be inside single-quotes Per https://docs.github.com/en/actions/learn-github-actions/expressions#literals string You must use single quotes. Escape literal single-quotes with a single quote. * Update README.md Co-authored-by: Tonye Jack --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9447b14c..7f3125ba 100644 --- a/README.md +++ b/README.md @@ -156,12 +156,12 @@ Support this project with a :star: done - name: Run step when a file changes - if: contains(steps.changed-files.outputs.modified_files, "my-file.txt") + if: contains(steps.changed-files.outputs.modified_files, 'my-file.txt') run: | echo "Your my-file.txt file has been modified." - name: Run step when a file has been deleted - if: contains(steps.changed-files.outputs.deleted_files, "test.txt") + if: contains(steps.changed-files.outputs.deleted_files, 'test.txt') run: | echo "Your test.txt file has been deleted." @@ -181,24 +181,24 @@ Support this project with a :star: **/migrate-*.sql - name: Run step if any of the listed files above change - if: steps.changed-files-specific.outputs.any_changed == "true" + if: steps.changed-files-specific.outputs.any_changed == 'true' run: | echo "One or more files listed above has changed." - name: Run step if only the files listed above change - if: steps.changed-files-specific.outputs.only_changed == "true" + if: steps.changed-files-specific.outputs.only_changed == 'true' run: | echo "Only files listed above have changed." - name: Run step if any of the listed files above is deleted - if: steps.changed-files.outputs.any_deleted == "true" + if: steps.changed-files.outputs.any_deleted == 'true' run: | for file in ${{ steps.changed-files.outputs.deleted_files }}; do echo "$file was deleted" done - name: Run step if all listed files above have been deleted - if: steps.changed-files.outputs.only_deleted == "true" + if: steps.changed-files.outputs.only_deleted == 'true' run: | for file in ${{ steps.changed-files.outputs.deleted_files }}; do echo "$file was deleted"