diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7fc59dde..879816ff 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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) }}' diff --git a/test/test rename 1.txt b/test/test rename 1.txt index 6de7b8c6..7462db65 100644 --- a/test/test rename 1.txt +++ b/test/test rename 1.txt @@ -1 +1 @@ -This is a test file. +This is test file 1. diff --git a/test/test rename 2.txt b/test/test rename 2.txt index 6de7b8c6..a938d27c 100644 --- a/test/test rename 2.txt +++ b/test/test rename 2.txt @@ -1 +1 @@ -This is a test file. +This is test file 2.