mirror of
https://github.com/tj-actions/changed-files
synced 2025-02-22 01:17:40 +00:00
Update README.md
This commit is contained in:
parent
589fb70c81
commit
6d8f9bd379
1 changed files with 9 additions and 1 deletions
10
README.md
10
README.md
|
@ -119,7 +119,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
|
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------------------------------------------
|
||||||
# Example 1
|
# Example 1
|
||||||
|
# -----------------------------------------------------------------------------------------------------------
|
||||||
- name: Get changed files
|
- name: Get changed files
|
||||||
id: changed-files
|
id: changed-files
|
||||||
uses: tj-actions/changed-files@v42
|
uses: tj-actions/changed-files@v42
|
||||||
|
@ -135,7 +137,9 @@ jobs:
|
||||||
echo "$file was changed"
|
echo "$file was changed"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------------------------------------------
|
||||||
# Example 2
|
# Example 2
|
||||||
|
# -----------------------------------------------------------------------------------------------------------
|
||||||
- name: Get all changed markdown files
|
- name: Get all changed markdown files
|
||||||
id: changed-markdown-files
|
id: changed-markdown-files
|
||||||
uses: tj-actions/changed-files@v42
|
uses: tj-actions/changed-files@v42
|
||||||
|
@ -153,7 +157,9 @@ jobs:
|
||||||
echo "$file was changed"
|
echo "$file was changed"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------------------------------------------
|
||||||
# Example 3
|
# Example 3
|
||||||
|
# -----------------------------------------------------------------------------------------------------------
|
||||||
- name: Get all test, doc and src files that have changed
|
- name: Get all test, doc and src files that have changed
|
||||||
id: changed-files-yaml
|
id: changed-files-yaml
|
||||||
uses: tj-actions/changed-files@v42
|
uses: tj-actions/changed-files@v42
|
||||||
|
@ -186,7 +192,9 @@ jobs:
|
||||||
echo "One or more doc file(s) has changed."
|
echo "One or more doc file(s) has changed."
|
||||||
echo "List all the files that have changed: $DOC_ALL_CHANGED_FILES"
|
echo "List all the files that have changed: $DOC_ALL_CHANGED_FILES"
|
||||||
|
|
||||||
# Example 3
|
# -----------------------------------------------------------------------------------------------------------
|
||||||
|
# Example 4
|
||||||
|
# -----------------------------------------------------------------------------------------------------------
|
||||||
- name: Get changed files in the docs folder
|
- name: Get changed files in the docs folder
|
||||||
id: changed-files-specific
|
id: changed-files-specific
|
||||||
uses: tj-actions/changed-files@v42
|
uses: tj-actions/changed-files@v42
|
||||||
|
|
Loading…
Add table
Reference in a new issue