From ad7f2ddf4e41200c4e29636a8d5edd496c2a876c Mon Sep 17 00:00:00 2001 From: joe Date: Wed, 13 Aug 2025 18:00:12 -0700 Subject: [PATCH] Fix all heredoc EOF delimiter indentation issues - Move all EOF delimiters to leftmost column with no indentation - Fix shell syntax errors in build.yml, test.yml, update-readme.yml, ci.yml - Ensure proper shell heredoc syntax for Forgejo Actions compatibility - Resolve 'unexpected end of file' errors in workflow execution --- .forgejo/workflows/build.yml | 14 +++++----- .forgejo/workflows/ci.yml | 38 ++++++++++++++-------------- .forgejo/workflows/test.yml | 14 +++++----- .forgejo/workflows/update-readme.yml | 14 +++++----- 4 files changed, 40 insertions(+), 40 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index daccceb1..3c207dc3 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -60,10 +60,10 @@ jobs: # Configure apt-cacher-ng 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 +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 # Update package lists with proxy sources apt update -y @@ -72,9 +72,9 @@ jobs: # Use 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 +deb http://deb.debian.org/debian stable main contrib non-free +deb-src http://deb.debian.org/debian stable main contrib non-free +EOF # Update package lists apt update -y diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 784ee7bd..ff53ff08 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -37,17 +37,17 @@ jobs: 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 +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 +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 @@ -105,15 +105,15 @@ jobs: 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 +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 +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 @@ -153,15 +153,15 @@ jobs: 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 +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 +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 diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 9fd197fa..eae0b3b3 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -44,10 +44,10 @@ jobs: # Configure apt-cacher-ng 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 +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 # Update package lists with proxy sources apt update -y @@ -56,9 +56,9 @@ jobs: # Use 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 +deb http://deb.debian.org/debian stable main contrib non-free +deb-src http://deb.debian.org/debian stable main contrib non-free +EOF # Update package lists apt update -y diff --git a/.forgejo/workflows/update-readme.yml b/.forgejo/workflows/update-readme.yml index 476b251e..0291ecf3 100644 --- a/.forgejo/workflows/update-readme.yml +++ b/.forgejo/workflows/update-readme.yml @@ -29,10 +29,10 @@ jobs: # Configure apt-cacher-ng 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 +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 # Update package lists with proxy sources apt update -y @@ -41,9 +41,9 @@ jobs: # Use 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 +deb http://deb.debian.org/debian stable main contrib non-free +deb-src http://deb.debian.org/debian stable main contrib non-free +EOF # Update package lists apt update -y