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