Remove redundant commit extraction step from workflow

### 🔧 Improvements
- Deleted unnecessary step for collecting commits manually in the `version-and-publish` workflow
- Relied on Claude action for streamlined changelog generation
- Updated API key naming for compatibility with new Claude token system
This commit is contained in:
2025-09-13 14:22:48 +02:00
parent f72da26cb9
commit 4a3ca0cf9b

View File

@@ -97,22 +97,6 @@ jobs:
echo "source-version=$SOURCE_VERSION" >> $GITHUB_OUTPUT
echo "target-version=$TARGET_VERSION" >> $GITHUB_OUTPUT
- name: Get commit information for Claude
id: commits
run: |
# Get commits since last tag
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
if [ -z "$LAST_TAG" ]; then
COMMITS=$(git log --oneline --no-merges --since="1 week ago" || echo "No recent commits")
echo "📝 Getting commits since 1 week ago (no previous tags found)"
else
COMMITS=$(git log --oneline --no-merges ${LAST_TAG}..HEAD || echo "No new commits")
echo "📝 Getting commits since tag: $LAST_TAG"
fi
echo "Commits found:"
echo "$COMMITS"
- name: Generate changelog with Claude
uses: anthropics/claude-code-action@v1
with:
@@ -145,7 +129,7 @@ jobs:
The recent commits to analyze are visible in the git history. Please examine them and create a comprehensive changelog entry.
If CHANGELOG.md doesn't exist, create it with a proper header and the new release section.
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
- name: Read generated changelog
id: changelog