Skip to content

Commit

Permalink
Fix CI workflows for themes with spaces in name
Browse files Browse the repository at this point in the history
  • Loading branch information
mathoudebine committed Dec 22, 2024
1 parent 09a9e23 commit 6c71bc5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/themes-screenshot-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
do
if test -f "$dir/theme.yaml"; then
# Keep only folder name
theme=`basename ${dir%*/}`
theme=`basename "${dir%*/}"`
# Setup selected theme in config.yaml
echo "Using theme $theme"
sed -i "/THEME:/c\ THEME: $theme" config.yaml
sed -i '/THEME:/c\ THEME: "'"$theme"'"' config.yaml
# For tests there is no real HW: use simulated LCD mode
# Check if theme is for 5"
orientation=$(grep 'DISPLAY_SIZE' $dir/theme.yaml | sed 's/ //g')
orientation=$(grep 'DISPLAY_SIZE' "$dir/theme.yaml" | sed 's/ //g')
if [ "$orientation" == "DISPLAY_SIZE:5\"" ]; then
sed -i "/REVISION:/c\ REVISION: SIMU5" config.yaml
else
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/themes-screenshot-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ jobs:
do
if test -f "$dir/theme.yaml"; then
# Keep only folder name
theme=`basename ${dir%*/}`
theme=`basename "${dir%*/}"`
# Setup selected theme in config.yaml
echo "Using theme $theme"
sed -i "/THEME:/c\ THEME: $theme" config.yaml
sed -i '/THEME:/c\ THEME: "'"$theme"'"' config.yaml
# For tests there is no real HW: use simulated LCD mode
# Check if theme is for 5"
orientation=$(grep 'DISPLAY_SIZE' $dir/theme.yaml | sed 's/ //g')
orientation=$(grep 'DISPLAY_SIZE' "$dir/theme.yaml" | sed 's/ //g')
if [ "$orientation" == "DISPLAY_SIZE:5\"" ]; then
sed -i "/REVISION:/c\ REVISION: SIMU5" config.yaml
else
Expand Down

0 comments on commit 6c71bc5

Please sign in to comment.