3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2025-01-17 19:17:45 +00:00

Update README.md

This commit is contained in:
Tonye Jack 2021-04-24 04:57:13 -04:00 committed by GitHub
parent 10f1fffaf6
commit cb1a80f76a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,12 +99,12 @@ jobs:
echo "$file was added"
done
- name: Run step when a file changes in a PR relative to the default branch
- name: Run step when a file changes
if: contains(steps.changed_files.outputs.modified_files, 'my-file.txt')
run: |
echo "Your file my-file.txt has been modified."
- name: Run step when a file is deleted in a PR relative to the default branch
- name: Run step when a file has been deleted
if: contains(steps.changed_files.outputs.deleted_files, 'test.txt')
run: |
echo "Your test.txt has been deleted."