Skip to content

Commit 5d6407b

Browse files
author
Your Name
committed
Fix YAML syntax in workflow file for heredoc
1 parent 29250f2 commit 5d6407b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,24 +48,24 @@ jobs:
4848
# Create placeholder SVGs for testing if none exist
4949
if [ ! -f "House_Code/static/svg/environment-layer.svg" ]; then
5050
echo "Creating test SVG file: environment-layer.svg"
51-
cat > House_Code/static/svg/environment-layer.svg << EOF
51+
cat > House_Code/static/svg/environment-layer.svg << 'EOFSVG1'
5252
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600">
53-
<rect width="800" height="600" fill="#e6f7ff" />
54-
<text x="400" y="300" font-family="Arial" font-size="48" text-anchor="middle" fill="#333">Environment Layer</text>
53+
<rect width="800" height="600" fill="#e6f7ff" />
54+
<text x="400" y="300" font-family="Arial" font-size="48" text-anchor="middle" fill="#333">Environment Layer</text>
5555
</svg>
56-
EOF
56+
EOFSVG1
5757
fi
5858

5959
if [ ! -f "House_Code/static/svg/house-structure.svg" ]; then
6060
echo "Creating test SVG file: house-structure.svg"
61-
cat > House_Code/static/svg/house-structure.svg << EOF
61+
cat > House_Code/static/svg/house-structure.svg << 'EOFSVG2'
6262
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600">
63-
<rect width="800" height="600" fill="none" stroke="#333" stroke-width="2" />
64-
<polygon points="400,100 200,300 600,300" fill="#f5deb3" stroke="#333" stroke-width="2" />
65-
<rect x="250" y="300" width="300" height="200" fill="#f5deb3" stroke="#333" stroke-width="2" />
66-
<text x="400" y="450" font-family="Arial" font-size="48" text-anchor="middle" fill="#333">House Structure</text>
63+
<rect width="800" height="600" fill="none" stroke="#333" stroke-width="2" />
64+
<polygon points="400,100 200,300 600,300" fill="#f5deb3" stroke="#333" stroke-width="2" />
65+
<rect x="250" y="300" width="300" height="200" fill="#f5deb3" stroke="#333" stroke-width="2" />
66+
<text x="400" y="450" font-family="Arial" font-size="48" text-anchor="middle" fill="#333">House Structure</text>
6767
</svg>
68-
EOF
68+
EOFSVG2
6969
fi
7070

7171
- name: Debug current directory structure

0 commit comments

Comments
 (0)