Skip to content

Commit 3cb0583

Browse files
committed
Improves file existence checks and error handling in build process
Replaces direct file copy with existence checks to prevent errors when files are missing. Updates copy command to handle all HTML and CSS files generically. Adds better feedback about which files exist before attempting to copy them.
1 parent 36e1fb1 commit 3cb0583

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/merge-cvclaude-to-360.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,13 @@ jobs:
4848
# List files to debug
4949
echo "Files in cvclaude-build after build:"
5050
ls -la cvclaude-build/
51-
# Copy the built HTML files and minified CSS to 360 folder
52-
cp cvclaude-build/index.html cvclaude-build/index-fr.html cvclaude-build/index-en.html cvclaude-build/style.min.css 360/ 2>/dev/null || true
51+
echo "Checking if specific files exist:"
52+
ls -la cvclaude-build/index.html 2>/dev/null && echo "index.html exists" || echo "index.html does not exist"
53+
ls -la cvclaude-build/index-fr.html 2>/dev/null && echo "index-fr.html exists" || echo "index-fr.html does not exist"
54+
ls -la cvclaude-build/index-en.html 2>/dev/null && echo "index-en.html exists" || echo "index-en.html does not exist"
55+
ls -la cvclaude-build/style.min.css 2>/dev/null && echo "style.min.css exists" || echo "style.min.css does not exist"
56+
# Copy any existing HTML files and CSS to 360 folder
57+
cp cvclaude-build/*.html cvclaude-build/*.css 360/ 2>/dev/null || echo "No files to copy"
5358
# List files in 360 folder to verify
5459
echo "Files copied to 360 folder:"
5560
ls -la 360/

0 commit comments

Comments
 (0)