3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2024-12-17 03:47:20 +00:00

Update README.md

This commit is contained in:
Tonye Jack 2021-12-29 20:44:54 -05:00 committed by GitHub
parent af9f912974
commit c1644a1f17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -155,12 +155,12 @@ Support this project with a :star:
done done
- name: Run step when a file changes - 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: | run: |
echo "Your my-file.txt file has been modified." echo "Your my-file.txt file has been modified."
- name: Run step when a file has been deleted - 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: | run: |
echo "Your test.txt file has been deleted." echo "Your test.txt file has been deleted."
@ -179,12 +179,12 @@ Support this project with a :star:
^(mynewfile|custom) ^(mynewfile|custom)
- name: Run step if any of the listed files above change - 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: | run: |
echo "One or more files listed above has changed." echo "One or more files listed above has changed."
- name: Run step if only the files listed above change - 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: | run: |
echo "Only files listed above have changed." echo "Only files listed above have changed."
@ -252,7 +252,7 @@ Support this project with a :star:
id: changed-files-since-last-remote-commit id: changed-files-since-last-remote-commit
uses: tj-actions/changed-files@v12.1 uses: tj-actions/changed-files@v12.1
with: with:
since_last_remote_commit: 'true' since_last_remote_commit: "true"
``` ```