Skip to content

Commit

Permalink
Fix failing CI (detect modules) because of the special characters in …
Browse files Browse the repository at this point in the history
…filename (#1894)
  • Loading branch information
jedla97 authored Jul 19, 2024
1 parent 9714300 commit 569452e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,13 @@ jobs:
CHANGED=""
MODULES_ARG=""
# If changed file have some special character, its path is surrounded with quotes which causing the if statement fail
CHANGED_FILE=$(echo ${{ steps.files.outputs.all_changed_and_modified_files }} | sed 's/\"/\\"/')
for module in $MODULES
do
if [[ "${{ steps.files.outputs.all_changed_and_modified_files }}" =~ ("$module") ]] ; then
CHANGED=$(echo $CHANGED" "$module)
if [[ $CHANGED_FILE =~ ("$module") ]] ; then
CHANGED=$(echo $CHANGED" "$module)
fi
done
Expand Down

0 comments on commit 569452e

Please sign in to comment.