Skip to content

Commit 1e43622

Browse files
committed
fix: Escape backticks in changelog generation to fix YAML parsing
1 parent a3aee4a commit 1e43622

1 file changed

Lines changed: 18 additions & 32 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 18 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -269,38 +269,24 @@ jobs:
269269
}
270270
271271
// Add installation instructions
272-
changelog += `
273-
## 📦 Installation
274-
275-
### Recommended: Install Script
276-
\`\`\`bash
277-
curl -fsSL https://autohand.ai/install.sh | sh
278-
\`\`\`
279-
280-
### Or install a specific version
281-
\`\`\`bash
282-
AUTOHAND_VERSION=${version} curl -fsSL https://autohand.ai/install.sh | sh
283-
\`\`\`
284-
285-
### Via npm/bun
286-
\`\`\`bash
287-
npm install -g autohand-cli
288-
# or
289-
bun install -g autohand-cli
290-
\`\`\`
291-
292-
### Manual Download
293-
Download the appropriate binary for your system from the assets below.
294-
295-
## 📋 Available Binaries
296-
| Platform | Architecture | Binary |
297-
|----------|--------------|--------|
298-
| macOS | Apple Silicon (M1/M2/M3/M4) | \`autohand-macos-arm64\` |
299-
| macOS | Intel | \`autohand-macos-x64\` |
300-
| Linux | x64 | \`autohand-linux-x64\` |
301-
| Linux | ARM64 | \`autohand-linux-arm64\` |
302-
| Windows | x64 | \`autohand-windows-x64.exe\` |
303-
`;
272+
const cb = '`' + '`' + '`';
273+
changelog += '\n## 📦 Installation\n\n';
274+
changelog += '### Recommended: Install Script\n';
275+
changelog += cb + 'bash\ncurl -fsSL https://autohand.ai/install.sh | sh\n' + cb + '\n\n';
276+
changelog += '### Or install a specific version\n';
277+
changelog += cb + 'bash\nAUTOHAND_VERSION=' + version + ' curl -fsSL https://autohand.ai/install.sh | sh\n' + cb + '\n\n';
278+
changelog += '### Via npm/bun\n';
279+
changelog += cb + 'bash\nnpm install -g autohand-cli\n# or\nbun install -g autohand-cli\n' + cb + '\n\n';
280+
changelog += '### Manual Download\n';
281+
changelog += 'Download the appropriate binary for your system from the assets below.\n\n';
282+
changelog += '## 📋 Available Binaries\n';
283+
changelog += '| Platform | Architecture | Binary |\n';
284+
changelog += '|----------|--------------|--------|\n';
285+
changelog += '| macOS | Apple Silicon (M1/M2/M3/M4) | `autohand-macos-arm64` |\n';
286+
changelog += '| macOS | Intel | `autohand-macos-x64` |\n';
287+
changelog += '| Linux | x64 | `autohand-linux-x64` |\n';
288+
changelog += '| Linux | ARM64 | `autohand-linux-arm64` |\n';
289+
changelog += '| Windows | x64 | `autohand-windows-x64.exe` |\n';
304290
305291
core.setOutput('changelog', changelog);
306292
return changelog;

0 commit comments

Comments
 (0)