Skip to content

Filepaths containing whitespaces broken apart in all_changed_files #1738

Answered by rjwignar
rjwignar asked this question in Q&A
Discussion options

You must be logged in to vote

Currently attempting the solution proposed in #609 (comment):

@preritdas Seems you'll need to tweak the code you have to resolve the issue.

For example, you'll need to use

...
      - 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

See this PR for more information.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jackton1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant