Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String literals need to be inside single-quotes #319

Merged
merged 2 commits into from
Jan 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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."

Expand All @@ -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"
Expand Down