Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .github/workflows/codespell.yml

This file was deleted.

27 changes: 11 additions & 16 deletions .github/workflows/versioning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,14 @@ jobs:
- name: Run Docusaurus versioning
run: npx docusaurus docs:version ${{ steps.extract_version.outputs.version }}

- name: Create branch and commit changes
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
BRANCH="version-${{ steps.extract_version.outputs.version }}"
git checkout -b $BRANCH
git add .
git commit -m "Add Docusaurus version ${{ steps.extract_version.outputs.version }}" || echo "No changes to commit"
git push origin $BRANCH

- name: Create Pull Request
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
BRANCH="version-${{ steps.extract_version.outputs.version }}"
gh pr create --base main --head $BRANCH --title "Add version ${{ steps.extract_version.outputs.version }}" --body "Automated versioning changes for v${{ steps.extract_version.outputs.version }}. This includes English docs; Chinese will fallback to English as per Docusaurus behavior."
- name: Create Pull Request via API
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Add Docusaurus version ${{ steps.extract_version.outputs.version }}"
title: "Add version ${{ steps.extract_version.outputs.version }}"
body: "Automated versioning changes for v${{ steps.extract_version.outputs.version }}"
branch: "version-${{ steps.extract_version.outputs.version }}"
base: "main"
delete-branch: true
signoff: true