Skip to content

Commit 13d69d4

Browse files
committed
chore: update GitHub Actions to v6 (checkout, changelog)
1 parent 3c28ad0 commit 13d69d4

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/automated-release.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
steps:
2222
# 1. Checkout with full history for conventional commits analysis
2323
- name: Checkout
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v6
2525
with:
2626
fetch-depth: 0
2727

@@ -33,7 +33,7 @@ jobs:
3333
# - Git commit and push
3434
- name: Conventional Changelog Action
3535
id: changelog
36-
uses: TriPSs/conventional-changelog-action@v5
36+
uses: TriPSs/conventional-changelog-action@v6
3737
with:
3838
github-token: ${{ secrets.GITHUB_TOKEN }}
3939
git-message: 'chore(release): {version}'
@@ -46,14 +46,15 @@ jobs:
4646
version-path: 'version'
4747
skip-on-empty: 'false'
4848
skip-version-file: 'false'
49-
skip-commit: 'false'
49+
skip-commit: 'true'
50+
skip-tag: 'true'
5051

5152
# 2b. Sync plugin version, SKILL.md version, and git ref
5253
# This ensures all three version fields stay synchronized:
5354
# - root version (updated by conventional-changelog-action above)
5455
# - plugins[0].version (synced here)
5556
# - SKILL.md metadata.version (synced here)
56-
- name: Sync Plugin Version and SKILL.md
57+
- name: Sync and Commit Release
5758
if: steps.changelog.outputs.skipped == 'false'
5859
env:
5960
VERSION: ${{ steps.changelog.outputs.version }}
@@ -130,12 +131,17 @@ jobs:
130131
sys.exit(1)
131132
EOF
132133
133-
# Commit the sync
134+
# Commit all changes (CHANGELOG, marketplace.json, SKILL.md) together
134135
git config user.name "github-actions[bot]"
135136
git config user.email "github-actions[bot]@users.noreply.github.com"
136-
git add .claude-plugin/marketplace.json SKILL.md
137-
git commit --amend --no-edit
138-
git push --force-with-lease
137+
git add CHANGELOG.md .claude-plugin/marketplace.json SKILL.md
138+
git commit -m "chore(release): v${VERSION} [skip ci]"
139+
140+
# Create tag
141+
git tag "v${VERSION}"
142+
143+
# Push commit and tags together
144+
git push --follow-tags
139145
140146
# 3. Create GitHub Release
141147
# Only run if a new version was created

0 commit comments

Comments
 (0)