Fix YAML syntax errors with proper heredoc indentation
Some checks failed
Build apt-ostree Package / Build apt-ostree Package (push) Failing after 1m30s
Simple CI / Build and Test (push) Failing after 2s
Simple CI / Security Audit (push) Failing after 2s
Simple CI / Build Package (push) Failing after 2s
Test apt-ostree Build / Test apt-ostree Build (with existing libostree) (push) Failing after 1m16s
Simple CI / Final Status (push) Successful in 1s

- Use <<- operator for indented heredoc delimiters
- Maintain proper YAML structure with consistent indentation
- Fix all workflow files: build.yml, test.yml, update-readme.yml, ci.yml
- Ensure all files pass yq validation
- Resolve 'unexpected end of file' and YAML parsing errors
This commit is contained in:
joe 2025-08-13 18:05:33 -07:00
parent 780945eecd
commit 9bde25c911
4 changed files with 54 additions and 54 deletions

View file

@ -36,18 +36,18 @@ jobs:
echo "Checking for apt-cacher-ng availability..."
if curl -s --connect-timeout 5 http://192.168.1.101:3142/acng-report.html > /dev/null 2>&1; then
echo "✅ apt-cacher-ng is available, configuring proxy sources..."
cat > /etc/apt/sources.list.d/apt-cacher-ng.list << 'EOF'
deb http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
deb-src http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
deb http://192.168.1.101:3142/HTTPS///get.docker.com/ubuntu docker main
EOF
cat > /etc/apt/sources.list.d/apt-cacher-ng.list <<- 'EOF'
deb http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
deb-src http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
deb http://192.168.1.101:3142/HTTPS///get.docker.com/ubuntu docker main
EOF
apt update -y
else
echo "⚠️ apt-cacher-ng not available, using standard Debian sources..."
cat > /etc/apt/sources.list.d/standard.list << 'EOF'
deb http://deb.debian.org/debian stable main contrib non-free
deb-src http://deb.debian.org/debian stable main contrib non-free
EOF
cat > /etc/apt/sources.list.d/standard.list <<- 'EOF'
deb http://deb.debian.org/debian stable main contrib non-free
deb-src http://deb.debian.org/debian stable main contrib non-free
EOF
apt update -y
fi
@ -104,16 +104,16 @@ EOF
run: |
apt update -y
if curl -s --connect-timeout 5 http://192.168.1.101:3142/acng-report.html > /dev/null 2>&1; then
cat > /etc/apt/sources.list.d/apt-cacher-ng.list << 'EOF'
deb http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
deb-src http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
EOF
cat > /etc/apt/sources.list.d/apt-cacher-ng.list <<- 'EOF'
deb http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
deb-src http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
EOF
apt update -y
else
cat > /etc/apt/sources.list.d/standard.list << 'EOF'
deb http://deb.debian.org/debian stable main contrib non-free
deb-src http://deb.debian.org/debian stable main contrib non-free
EOF
cat > /etc/apt/sources.list.d/standard.list <<- 'EOF'
deb http://deb.debian.org/debian stable main contrib non-free
deb-src http://deb.debian.org/debian stable main contrib non-free
EOF
apt update -y
fi
@ -152,16 +152,16 @@ EOF
run: |
apt update -y
if curl -s --connect-timeout 5 http://192.168.1.101:3142/acng-report.html > /dev/null 2>&1; then
cat > /etc/apt/sources.list.d/apt-cacher-ng.list << 'EOF'
deb http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
deb-src http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
EOF
cat > /etc/apt/sources.list.d/apt-cacher-ng.list <<- 'EOF'
deb http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
deb-src http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free
EOF
apt update -y
else
cat > /etc/apt/sources.list.d/standard.list << 'EOF'
deb http://deb.debian.org/debian stable main contrib non-free
deb-src http://deb.debian.org/debian stable main contrib non-free
EOF
cat > /etc/apt/sources.list.d/standard.list <<- 'EOF'
deb http://deb.debian.org/debian stable main contrib non-free
deb-src http://deb.debian.org/debian stable main contrib non-free
EOF
apt update -y
fi