mirror of
https://github.com/tj-actions/changed-files
synced 2025-01-17 09:17:46 +00:00
Merge pull request #622 from tj-actions/chore/update-readme
This commit is contained in:
commit
d552acdbfc
1 changed files with 13 additions and 0 deletions
13
README.md
13
README.md
|
@ -76,6 +76,19 @@ jobs:
|
|||
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
|
||||
echo "$file was changed"
|
||||
done
|
||||
|
||||
- name: Get changed files in the docs folder
|
||||
id: changed-files-specific
|
||||
uses: tj-actions/changed-files@v29.0.4
|
||||
with:
|
||||
files: |
|
||||
docs/**
|
||||
|
||||
- name: Run step if any file(s) in the docs folder change
|
||||
if: steps.changed-files-specific.outputs.any_changed == 'true'
|
||||
run: |
|
||||
echo "One or more files in the docs folder has changed."
|
||||
echo "List all the files that have changed: ${{ steps.changed-files.outputs.all_changed_files }}"
|
||||
```
|
||||
|
||||
If you feel generous and want to show some extra appreciation:
|
||||
|
|
Loading…
Reference in a new issue