mirror of
https://github.com/tj-actions/changed-files
synced 2025-02-21 05:28:14 +00:00
Update README.md
This commit is contained in:
parent
fcb2ab8c32
commit
9864173ab1
1 changed files with 15 additions and 3 deletions
12
README.md
12
README.md
|
@ -116,6 +116,18 @@ jobs:
|
|||
run: |
|
||||
echo "Your test.txt has been deleted."
|
||||
|
||||
- name: Get specific changed files
|
||||
id: changed-files-specific
|
||||
uses: tj-actions/changed-files@v4.2
|
||||
with:
|
||||
files: |
|
||||
my-file.txt
|
||||
test.txt
|
||||
|
||||
- name: Run step if all files listed above have changed
|
||||
if: steps.changed-files-specific.outputs.has_changed
|
||||
run: |
|
||||
echo "Both my-file.txt and test.txt have changed."
|
||||
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue