File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -45,11 +45,19 @@ runs:
45
45
git checkout main
46
46
47
47
echo "Remove 'open' from any <details> tags"
48
- sed -i.tmp -r 's/<details id=([0-9 ]+) open>/<details id=\1>/g' README.md
48
+ sed -i.tmp -r 's/<details id=([0-9X ]+) open>/<details id=\1>/g' README.md
49
49
50
50
echo "Add 'open' to step TO_STEP"
51
51
sed -i.tmp -r "s/<details id=$TO_STEP>/<details id=$TO_STEP open>/g" README.md
52
52
53
+ echo "Update all HTML comments to hide everything"
54
+ sed -i.tmp -r 's/<!--step([0-9X]+)-->/<!--step\1/g' README.md
55
+ sed -i.tmp -r 's/<!--endstep([0-9X]+)-->/endstep\1-->/g' README.md
56
+
57
+ echo "Show the current TO_STEP"
58
+ sed -i.tmp -r "s/<\!--step$TO_STEP/<\!--step$TO_STEP-->/g" README.md
59
+ sed -i.tmp -r "s/endstep$TO_STEP-->/<\!--endstep$TO_STEP-->/g" README.md
60
+
53
61
echo "Update the STEP file to TO_STEP"
54
62
echo "$TO_STEP" > .github/script/STEP
55
63
You can’t perform that action at this time.
0 commit comments