mirror of
https://github.com/tj-actions/changed-files
synced 2025-02-22 01:17:40 +00:00
Merge branch 'main' into upgrade-to-v4.3
This commit is contained in:
commit
d6f3673f2e
1 changed files with 15 additions and 3 deletions
12
README.md
12
README.md
|
@ -116,6 +116,18 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "Your test.txt has been deleted."
|
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