Fix YAML syntax error in workflow: replace heredoc with echo statements
Some checks failed
Compile apt-layer (v2) / compile (push) Has been cancelled

This commit is contained in:
robojerk 2025-07-15 09:18:19 -07:00
parent 4be98e2537
commit 2f8492e65f

View file

@ -261,28 +261,26 @@ jobs:
zip -r "apt-layer-compiled-${timestamp}.zip" artifacts/ zip -r "apt-layer-compiled-${timestamp}.zip" artifacts/
# Create a simple download script # Create a simple download script
cat > download-artifacts.sh << 'EOF' echo '#!/bin/bash' > download-artifacts.sh
#!/bin/bash echo 'echo "apt-layer Compiled Scripts Downloader"' >> download-artifacts.sh
echo "apt-layer Compiled Scripts Downloader" echo 'echo "====================================="' >> download-artifacts.sh
echo "=====================================" echo 'echo ""' >> download-artifacts.sh
echo "" echo 'echo "This script will download the compiled apt-layer scripts."' >> download-artifacts.sh
echo "This script will download the compiled apt-layer scripts." echo 'echo ""' >> download-artifacts.sh
echo "" echo '' >> download-artifacts.sh
echo '# Check if we are in a workflow environment' >> download-artifacts.sh
# Check if we're in a workflow environment echo 'if [[ -n "$GITHUB_WORKSPACE" ]]; then' >> download-artifacts.sh
if [[ -n "$GITHUB_WORKSPACE" ]]; then echo ' echo "Running in workflow environment..."' >> download-artifacts.sh
echo "Running in workflow environment..." echo ' echo "Artifacts are available in the artifacts/ directory"' >> download-artifacts.sh
echo "Artifacts are available in the artifacts/ directory" echo ' echo ""' >> download-artifacts.sh
echo "" echo ' echo "Files:"' >> download-artifacts.sh
echo "Files:" echo ' ls -la artifacts/' >> download-artifacts.sh
ls -la artifacts/ echo ' echo ""' >> download-artifacts.sh
echo "" echo ' echo "To download these files, check the workflow run artifacts section."' >> download-artifacts.sh
echo "To download these files, check the workflow run artifacts section." echo 'else' >> download-artifacts.sh
else echo ' echo "Not in workflow environment."' >> download-artifacts.sh
echo "Not in workflow environment." echo ' echo "Please run this in the context of a workflow run."' >> download-artifacts.sh
echo "Please run this in the context of a workflow run." echo 'fi' >> download-artifacts.sh
fi
EOF
chmod +x download-artifacts.sh chmod +x download-artifacts.sh