Skip to content

Commit

Permalink
fixed bash for loop, now testing using env variable instead of modify…
Browse files Browse the repository at this point in the history
…ing all_changed_files
  • Loading branch information
rjwignar committed Nov 25, 2023
1 parent d73d007 commit e7615ed
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/clang_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,24 @@ jobs:
PROCESS_OUTPUT=""
for (( i=0; i<${LIST_LENGTH}; i++ ));
do
PROCESS_OUTPUT+=\'\'\'\'\'\'\'
PROCESS_OUTPUT+="${ALL_CHANGED_FILES[$i]}"
if [[ $i != "$(($LIST_LENGTH - 1))" ]];
then
PROCESS_OUTPUT+=' '
fi
done
echo $PROCESS_OUTPUT
# for (( i=0; i<${LIST_LENGTH}; i++ ));
# do
# PROCESS_OUTPUT+=\'
# PROCESS_OUTPUT+="${ALL_CHANGED_FILES[$i]}"
# if [[ $i != "$(($LIST_LENGTH - 1))" ]];
# then
# PROCESS_OUTPUT+=' '
# fi
# done
# echo $PROCESS_OUTPUT
IFS=$','
for file in $(echo )
IFS=$',' read -a MODIFIED_FILES_ARRAY <<< "${{ steps.changed-files.outputs.all_changed_files }}"
for file in "${MODIFIED_FILES_ARRAY[@]}"; do
echo $file
done
PROCESS_OUTPUT="${PROCESS_OUTPUT// /\\ }"
echo $PROCESS_OUTPUT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ struct PerPassParallax
uint ShadowsEndFade;
};



StructuredBuffer<PerPassParallax> perPassParallax : register(t30);

#include "ComplexParallaxMaterials/CRPM.hlsli"

0 comments on commit e7615ed

Please sign in to comment.