Remove Claude dependency from version workflow

### 🔧 Improvements
- Replaced Claude CLI changelog generation with simple commit-based approach
- Removed external dependency and potential authentication issues
- Simplified changelog generation to list commit messages directly

### 🐛 Bug Fixes
- Eliminated Claude CLI not found errors
- Removed timeout and authentication complexities
- Ensured workflow runs reliably in all environments
This commit is contained in:
2025-09-13 14:32:12 +02:00
parent 26fb4891f4
commit 7edbf6951d

View File

@@ -104,7 +104,7 @@ jobs:
git config --global user.name "github-actions[bot]" git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Generate changelog with Claude - name: Generate changelog from commits
if: steps.version-type.outputs.type != 'none' if: steps.version-type.outputs.type != 'none'
id: changelog id: changelog
run: | run: |
@@ -116,49 +116,18 @@ jobs:
COMMITS=$(git log --oneline --no-merges ${LAST_TAG}..HEAD || echo "No new commits") COMMITS=$(git log --oneline --no-merges ${LAST_TAG}..HEAD || echo "No new commits")
fi fi
# Generate changelog using Claude (fail if it fails) echo "📝 Generating changelog from commits"
if ! command -v claude-code >/dev/null 2>&1; then echo "Commits to process:"
echo "❌ ERROR: Claude CLI not found. Please ensure Claude Code is properly installed." echo "$COMMITS"
exit 1
fi
echo "🤖 Generating changelog with Claude..." # Simple changelog from commit messages
CHANGELOG=$(timeout 240s claude-code << 'CLAUDE_EOF' CHANGELOG="## Changes
Please analyze the following git commits and generate a concise changelog in this exact format:
## Changes ### 🔧 Improvements
$(echo "$COMMITS" | sed 's/^[a-f0-9]* /- /' | head -10)"
### 🚀 Features echo "Generated changelog:"
- Brief description of new features echo "$CHANGELOG"
### 🐛 Bug Fixes
- Brief description of bug fixes
### 🔧 Improvements
- Brief description of improvements/refactoring
### 📚 Documentation
- Brief description of documentation changes
### ⚡ Performance
- Brief description of performance improvements
Only include sections that have actual changes. Keep each bullet point concise and user-focused.
Git commits to analyze:
$COMMITS
CLAUDE_EOF
)
# Check if changelog generation succeeded
if [ $? -ne 0 ] || [ -z "$CHANGELOG" ]; then
echo "❌ ERROR: Failed to generate changelog with Claude. Workflow cannot continue."
echo "Debug info - Commits to analyze:"
echo "$COMMITS"
exit 1
fi
echo "✅ Successfully generated changelog with Claude"
# Save changelog to output # Save changelog to output
echo "changelog<<EOF" >> $GITHUB_OUTPUT echo "changelog<<EOF" >> $GITHUB_OUTPUT