mirror of
https://github.com/tj-actions/changed-files
synced 2025-01-17 19:17:45 +00:00
Update README.md
This commit is contained in:
parent
ee1e50f1df
commit
b13dd562b4
1 changed files with 41 additions and 2 deletions
43
README.md
43
README.md
|
@ -7,8 +7,47 @@ Get modified files
|
||||||
...
|
...
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Get modified files
|
- name: Get modified files with defaults
|
||||||
uses: tj-actions/changed-files@v1
|
id: changed-files
|
||||||
|
uses: ./
|
||||||
|
- name: Show output
|
||||||
|
run: |
|
||||||
|
echo "${{ toJSON(steps.changed-files.outputs) }}"
|
||||||
|
|
||||||
|
# Outputs:
|
||||||
|
# {
|
||||||
|
# added_files: ,
|
||||||
|
# copied_files: ,
|
||||||
|
# deleted_files: ,
|
||||||
|
# modified_files: .github/workflows/test.yml HISTORY.md action.yml ,
|
||||||
|
# renamed_files: ,
|
||||||
|
# changed_files: ,
|
||||||
|
# unmerged_files: ,
|
||||||
|
# unknown_files: ,
|
||||||
|
# all_changed_files:
|
||||||
|
# }
|
||||||
|
|
||||||
|
- name: Get modified files with comma separator
|
||||||
|
id: changed-files-comma
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
separator: ","
|
||||||
|
- name: Show output
|
||||||
|
run: |
|
||||||
|
echo "${{ toJSON(steps.changed-files-comma.outputs) }}"
|
||||||
|
|
||||||
|
# Outputs:
|
||||||
|
# {
|
||||||
|
# added_files: ,
|
||||||
|
# copied_files: ,
|
||||||
|
# deleted_files: ,
|
||||||
|
# modified_files: .github/workflows/test.yml,HISTORY.md,action.yml,,
|
||||||
|
# renamed_files: ,
|
||||||
|
# changed_files: ,
|
||||||
|
# unmerged_files: ,
|
||||||
|
# unknown_files: ,
|
||||||
|
# all_changed_files:
|
||||||
|
# }
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue