diff --git a/.forgejo/workflows/compile-apt-layer-v2.yml b/.forgejo/workflows/compile-apt-layer-v2.yml index db50912..27de17b 100644 --- a/.forgejo/workflows/compile-apt-layer-v2.yml +++ b/.forgejo/workflows/compile-apt-layer-v2.yml @@ -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