Update README.md
This commit is contained in:
parent
61622b6c0a
commit
32f883f2c8
12
README.md
12
README.md
@ -213,13 +213,19 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
path: subfolder
|
path: dir1
|
||||||
|
|
||||||
- name: Run changed-files with defaults on the dir1
|
- name: Run changed-files with defaults on the dir1
|
||||||
id: changed-files-for-subfolder
|
id: changed-files-for-dir1
|
||||||
uses: tj-actions/changed-files@v1.1.2
|
uses: tj-actions/changed-files@v1.1.2
|
||||||
with:
|
with:
|
||||||
path: subfolder
|
path: dir1
|
||||||
|
|
||||||
|
- name: List all added files in dir1
|
||||||
|
run: |
|
||||||
|
for file in "${{ steps.changed-files-for-dir1.outputs.added_files }}"; do
|
||||||
|
echo "$file was added"
|
||||||
|
done
|
||||||
```
|
```
|
||||||
|
|
||||||
### Running [pre-commit](https://pre-commit.com/) on all modified files
|
### Running [pre-commit](https://pre-commit.com/) on all modified files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user