Skip to content

Commit

Permalink
Merge pull request tj-actions#611 from tj-actions/chore/test-using-fo…
Browse files Browse the repository at this point in the history
…r-loop-with-output

chore: test using for loop with output
  • Loading branch information
jackton1 authored Sep 5, 2022
2 parents 3da07e5 + bbc26e5 commit 98d07d4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,15 @@ jobs:
uses: ./
with:
separator: ","
- name: List all modified files
run: |
IFS=$',' read -a MODIFIED_FILES_ARRAY <<< "${{ steps.changed-files-comma.outputs.modified_files }}"
for file in "${MODIFIED_FILES_ARRAY[@]}"; do
echo $file
done
unset IFS
shell:
bash
- name: Show output
run: |
echo '${{ toJSON(steps.changed-files-comma.outputs) }}'
Expand Down
2 changes: 1 addition & 1 deletion test/test rename 1.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
This is a test file.
This is test file 1.
2 changes: 1 addition & 1 deletion test/test rename 2.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
This is a test file.
This is test file 2.

0 comments on commit 98d07d4

Please sign in to comment.