docs: test #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync README to nextui-org/nextui | ||
on: | ||
push: | ||
paths: | ||
- 'README.md' | ||
jobs: | ||
sync-readme: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source repository | ||
uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
check-latest: true | ||
node-version-file: '.nvmrc' | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
- name: Clone target repository | ||
run: | | ||
git clone https://github.com/winchesHe/nextui | ||
- name: Run Sync docs | ||
run: | | ||
pnpm sync:docs | ||
cp ./nextui ../ | ||
- name: Commit and push changes | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
cd ../nextui | ||
rm -rf nextui-cli | ||
git config --global user.name "winchesHe" | ||
git config --global user.email "329487092@qq.com" | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: "docs: sync README.md from nextui-cli" | ||
branch: main | ||
title: "docs: sync README.md from nextui-cli" | ||
body: This PR was automatically created by GitHub Actions to sync README.md. |