Skip to content

Commit 2156ab5

Browse files
author
InfoTech.io Bot
committed
fix(workflow): replace heredoc with echo for module.json creation
GitHub Actions appears to have issues with heredoc termination in bash scripts. Replace heredoc approach with echo to avoid EOF syntax errors. Changes: - Replace cat > file <<'EOF' with echo 'content' > file - Maintain proper JSON formatting - Avoid heredoc termination issues in GitHub Actions environment YAML validation passes locally. Fixes: here-document EOF syntax error in GitHub Actions Related: #10, Stage: 2 (GitHub Actions Compatibility)
1 parent d858e91 commit 2156ab5

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/deploy-github-pages.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,7 @@ jobs:
241241
find ../current-site -maxdepth 1 -type f -exec mv {} ../current-site/content/ \;
242242
243243
# Создать минимальный module.json для current-site
244-
cat > ../current-site/module.json <<'EOF'
245-
{
244+
echo '{
246245
"module": {
247246
"name": "base-site",
248247
"version": "1.0.0",
@@ -253,8 +252,7 @@ jobs:
253252
"theme": "compose",
254253
"copy_static": true
255254
}
256-
}
257-
EOF
255+
}' > ../current-site/module.json
258256
259257
# Создать модифицированную конфигурацию
260258
jq --arg current_site_path "$(pwd)/../current-site" '

0 commit comments

Comments
 (0)