Add Claude Code CLI installation to workflow

### 🚀 Features
- Added step to install Claude Code CLI in GitHub Actions workflow
- Uses official installation script from claude.ai
- Adds CLI to PATH for subsequent steps

### 🔧 Improvements
- Enables AI-powered changelog generation in automated workflows
- Fails gracefully if CLI installation fails
- Ensures claude-code command is available for changelog generation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-13 14:07:57 +02:00
parent 419ee63a93
commit da90651e0d

View File

@@ -97,6 +97,12 @@ jobs:
echo "source-version=$SOURCE_VERSION" >> $GITHUB_OUTPUT
echo "target-version=$TARGET_VERSION" >> $GITHUB_OUTPUT
- name: Install Claude Code CLI
run: |
echo "🤖 Installing Claude Code CLI..."
curl -fsSL https://claude.ai/cli/install.sh | sh
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Generate changelog with Claude
id: changelog
run: |
@@ -110,7 +116,7 @@ jobs:
# Generate changelog using Claude (fail if it fails)
if ! command -v claude-code >/dev/null 2>&1; then
echo "❌ ERROR: Claude CLI not found. Please ensure Claude Code is properly installed."
echo "❌ ERROR: Claude CLI installation failed."
exit 1
fi