mirror of
https://github.com/xtr-dev/payload-mailing.git
synced 2025-12-10 08:13:23 +00:00
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:
18
.github/workflows/version-and-publish.yml
vendored
18
.github/workflows/version-and-publish.yml
vendored
@@ -97,22 +97,6 @@ jobs:
|
|||||||
echo "source-version=$SOURCE_VERSION" >> $GITHUB_OUTPUT
|
echo "source-version=$SOURCE_VERSION" >> $GITHUB_OUTPUT
|
||||||
echo "target-version=$TARGET_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
|
- name: Generate changelog with Claude
|
||||||
uses: anthropics/claude-code-action@v1
|
uses: anthropics/claude-code-action@v1
|
||||||
with:
|
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.
|
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.
|
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
|
- name: Read generated changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user