Skip to content

Commit d4fdbf3

Browse files
committed
chore(workflows): add steps to sync and commit docs changelog automatically
1 parent 2567abb commit d4fdbf3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/e2e-naga.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,18 @@ jobs:
169169
env:
170170
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
171171
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
172+
173+
- name: Sync docs changelog
174+
run: pnpm sync:docs-changelog
175+
176+
- name: Commit docs changelog
177+
run: |
178+
if git diff --quiet docs/changelog.mdx; then
179+
echo "Docs changelog already up to date."
180+
exit 0
181+
fi
182+
git config user.name "github-actions[bot]"
183+
git config user.email "github-actions[bot]@users.noreply.github.com"
184+
git add docs/changelog.mdx
185+
git commit -m "chore: sync docs changelog"
186+
git push origin ${{ github.ref_name }}

0 commit comments

Comments
 (0)