From 4a3ca0cf9bbb06fce945c8d9cbe7cde2651dc669 Mon Sep 17 00:00:00 2001 From: Bas van den Aakster Date: Sat, 13 Sep 2025 14:22:48 +0200 Subject: [PATCH] Remove redundant commit extraction step from workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### 🔧 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 --- .github/workflows/version-and-publish.yml | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/.github/workflows/version-and-publish.yml b/.github/workflows/version-and-publish.yml index 8c1de54..a8bd4cd 100644 --- a/.github/workflows/version-and-publish.yml +++ b/.github/workflows/version-and-publish.yml @@ -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