-
Background InformationHi everyone, # actions/checkout@v3 above
- name: Get changed files
id: changed-files
uses: tj-actions/[email protected]
with:
files: |
src/Features/*.cpp
src/Features/*.h
**/*.hlsl
**/*.hlsli
- name: List all changed files
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "$file was changed"
done
# pass ${{ steps.changed-files.outputs.all_changed_files }} to linter Problem - Filepaths with whitespace not preservedWhen testing this out, I noticed some of the files I modified contained whitespaces For example, after modifying a file with the filepath (note the spaces in
the 'List all changed files' step prints the following: In short, the above filepath is broken into the following:
which are then passed to the linter step and break CI. Question - How to preserve file paths containing whitespaces?Is there a way to preserve the full pathnames? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Currently attempting the solution proposed in #609 (comment):
|
Beta Was this translation helpful? Give feedback.
Currently attempting the solution proposed in #609 (comment):