File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -39,20 +39,22 @@ jobs:
3939 run : |
4040 for dir in res/themes/*/
4141 do
42- # Keep only folder name
43- theme=`basename ${dir%*/}`
44-
45- # Setup selected theme in config.yaml
46- echo "Using theme $theme"
47- sed -i "/THEME:/c\ THEME: $theme" config.yaml
48-
49- # Run system-monitor for 5 seconds
50- python3 main.py > output.log 2>&1 &
51- sleep 5
52- killall -9 python3
53-
54- # Rename screen capture
55- cp screencap.png screenshot-$theme.png
42+ if test -f "$dir/theme.yaml"; then
43+ # Keep only folder name
44+ theme=`basename ${dir%*/}`
45+
46+ # Setup selected theme in config.yaml
47+ echo "Using theme $theme"
48+ sed -i "/THEME:/c\ THEME: $theme" config.yaml
49+
50+ # Run system-monitor for 5 seconds
51+ python3 main.py > output.log 2>&1 &
52+ sleep 5
53+ killall -9 python3
54+
55+ # Rename screen capture
56+ cp screencap.png screenshot-$theme.png
57+ fi
5658 done
5759
5860 - name : Archive screenshots
You can’t perform that action at this time.
0 commit comments