mirror of
https://github.com/tj-actions/changed-files
synced 2025-01-18 13:57:39 +00:00
chore: test using for loop with output
This commit is contained in:
parent
3da07e5b14
commit
be849d1612
1 changed files with 9 additions and 0 deletions
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
|
@ -416,6 +416,15 @@ jobs:
|
|||
uses: ./
|
||||
with:
|
||||
separator: ","
|
||||
- name: List all modified files
|
||||
run: |
|
||||
IFS=$','
|
||||
for file in ${{ steps.changed-files-comma.outputs.modified_files }}; do
|
||||
echo $file
|
||||
done
|
||||
unset IFS
|
||||
shell:
|
||||
bash
|
||||
- name: Show output
|
||||
run: |
|
||||
echo '${{ toJSON(steps.changed-files-comma.outputs) }}'
|
||||
|
|
Loading…
Reference in a new issue