Update README.md
This commit is contained in:
parent
89890d6f77
commit
fe20777b56
28
README.md
28
README.md
@ -135,6 +135,7 @@ 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
|
||||||
- name: Get changed files
|
- name: Get changed files
|
||||||
id: changed-files
|
id: changed-files
|
||||||
uses: tj-actions/changed-files@v37
|
uses: tj-actions/changed-files@v37
|
||||||
@ -149,14 +150,7 @@ jobs:
|
|||||||
echo "$file was changed"
|
echo "$file was changed"
|
||||||
done
|
done
|
||||||
|
|
||||||
job3:
|
# Example 2
|
||||||
runs-on: ubuntu-latest # windows-latest | macos-latest
|
|
||||||
name: Test changed-files
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
|
|
||||||
|
|
||||||
- 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@v37
|
uses: tj-actions/changed-files@v37
|
||||||
@ -169,14 +163,7 @@ jobs:
|
|||||||
echo "One or more files in the docs folder has changed."
|
echo "One or more files in the docs folder has changed."
|
||||||
echo "List all the files that have changed: ${{ steps.changed-files-specific.outputs.all_changed_files }}"
|
echo "List all the files that have changed: ${{ steps.changed-files-specific.outputs.all_changed_files }}"
|
||||||
|
|
||||||
job4:
|
# Example 3
|
||||||
runs-on: ubuntu-latest # windows-latest | macos-latest
|
|
||||||
name: Test changed-files
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
|
|
||||||
|
|
||||||
- name: Get all changed .js file(s) or any file in the static folder excluding the docs folder
|
- name: Get all changed .js file(s) or any file in the static folder excluding the docs folder
|
||||||
id: changed-files-excluded
|
id: changed-files-excluded
|
||||||
uses: tj-actions/changed-files@v37
|
uses: tj-actions/changed-files@v37
|
||||||
@ -192,14 +179,7 @@ jobs:
|
|||||||
echo "One or more .js file(s) or any file in the static folder but not in the doc folder has changed."
|
echo "One or more .js file(s) or any file in the static folder but not in the doc folder has changed."
|
||||||
echo "List all the files that have changed: ${{ steps.changed-files-excluded.outputs.all_changed_files }}"
|
echo "List all the files that have changed: ${{ steps.changed-files-excluded.outputs.all_changed_files }}"
|
||||||
|
|
||||||
job5:
|
# Example 4
|
||||||
runs-on: ubuntu-latest # windows-latest | macos-latest
|
|
||||||
name: Test changed-files
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
|
|
||||||
|
|
||||||
- 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@v37
|
uses: tj-actions/changed-files@v37
|
||||||
|
Loading…
x
Reference in New Issue
Block a user