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