Skip to content

Commit 312f666

Browse files
committed
fix: correct YAML syntax in GitHub workflows
- Fix heredoc syntax in workflow files causing YAML parse errors - Change EOF delimiter to FORMULA_END to avoid conflicts - Properly indent Ruby code in heredoc sections
1 parent ff25da3 commit 312f666

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

.github/workflows/automated-release.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -91,25 +91,25 @@ jobs:
9191
if [ ! -f "$FORMULA" ]; then
9292
echo "Creating new Homebrew formula for ra2mp3..."
9393
mkdir -p Formula
94-
cat > "$FORMULA" << 'EOF'
95-
class Ra2mp3 < Formula
96-
desc "Convert RealAudio (.ra/.ram/.rm) files to MP3 format using FFmpeg"
97-
homepage "https://github.com/wiiiimm/ra2mp3"
98-
url "https://github.com/wiiiimm/ra2mp3/archive/v0.0.0.tar.gz"
99-
sha256 "placeholder"
100-
license "MIT"
94+
cat > "$FORMULA" << 'FORMULA_END'
95+
class Ra2mp3 < Formula
96+
desc "Convert RealAudio (.ra/.ram/.rm) files to MP3 format using FFmpeg"
97+
homepage "https://github.com/wiiiimm/ra2mp3"
98+
url "https://github.com/wiiiimm/ra2mp3/archive/v0.0.0.tar.gz"
99+
sha256 "placeholder"
100+
license "MIT"
101101
102-
depends_on "ffmpeg"
102+
depends_on "ffmpeg"
103103
104-
def install
105-
bin.install "ra2mp3"
106-
end
104+
def install
105+
bin.install "ra2mp3"
106+
end
107107
108-
test do
109-
system "#{bin}/ra2mp3", "--version"
110-
end
111-
end
112-
EOF
108+
test do
109+
system "#{bin}/ra2mp3", "--version"
110+
end
111+
end
112+
FORMULA_END
113113
fi
114114
115115
# Calculate SHA256 for the release tarball

.github/workflows/release-on-version-change.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -195,25 +195,25 @@ jobs:
195195
FORMULA="Formula/ra2mp3.rb"
196196
if [ ! -f "$FORMULA" ]; then
197197
mkdir -p Formula
198-
cat > "$FORMULA" << 'EOF'
199-
class Ra2mp3 < Formula
200-
desc "Convert RealAudio (.ra/.ram/.rm) files to MP3 format using FFmpeg"
201-
homepage "https://github.com/wiiiimm/ra2mp3"
202-
url "https://github.com/wiiiimm/ra2mp3/archive/v0.0.0.tar.gz"
203-
sha256 "placeholder"
204-
license "MIT"
198+
cat > "$FORMULA" << 'FORMULA_END'
199+
class Ra2mp3 < Formula
200+
desc "Convert RealAudio (.ra/.ram/.rm) files to MP3 format using FFmpeg"
201+
homepage "https://github.com/wiiiimm/ra2mp3"
202+
url "https://github.com/wiiiimm/ra2mp3/archive/v0.0.0.tar.gz"
203+
sha256 "placeholder"
204+
license "MIT"
205205
206-
depends_on "ffmpeg"
206+
depends_on "ffmpeg"
207207
208-
def install
209-
bin.install "ra2mp3"
210-
end
208+
def install
209+
bin.install "ra2mp3"
210+
end
211211
212-
test do
213-
system "#{bin}/ra2mp3", "--version"
214-
end
215-
end
216-
EOF
212+
test do
213+
system "#{bin}/ra2mp3", "--version"
214+
end
215+
end
216+
FORMULA_END
217217
fi
218218
219219
# Calculate SHA256 for the release tarball

0 commit comments

Comments
 (0)