From 14da1bf284b1b92d3636f00855bd76c7b1876e50 Mon Sep 17 00:00:00 2001 From: RAprogramm Date: Sun, 12 Oct 2025 16:16:19 +0700 Subject: [PATCH] #197 fix: correct heredoc syntax in release workflow Fix YAML parsing error caused by quoted heredoc delimiters. Changes: - Replace 'RUST_EOF' with 'EOF' in heredoc delimiter - Replace 'TOML_EOF' with 'EOF' in heredoc delimiter - Maintain heredoc quoting to prevent variable expansion Fixes: - Resolves startup_failure in release workflow (run 18441530077) - GitHub Actions YAML parser now correctly handles heredoc syntax --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e669188..4689790 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -122,7 +122,7 @@ jobs: # Semver comparison using inline Rust script TMPDIR=$(mktemp -d) mkdir -p "${TMPDIR}/src" - cat > "${TMPDIR}/src/main.rs" << 'RUST_EOF' + cat > "${TMPDIR}/src/main.rs" << 'EOF' use std::env; fn main() { @@ -156,9 +156,9 @@ jobs: println!("equal"); } } - RUST_EOF + EOF - cat > "${TMPDIR}/Cargo.toml" << 'TOML_EOF' + cat > "${TMPDIR}/Cargo.toml" << 'EOF' [package] name = "semver-compare" version = "0.1.0" @@ -166,7 +166,7 @@ jobs: [dependencies] semver = "1.0" - TOML_EOF + EOF # Build and run comparison COMPARISON=$(cd "${TMPDIR}" && cargo run --quiet -- "${LOCAL_VER}" "${CRATESIO_VER}" 2>/dev/null || echo "unknown")