-
Notifications
You must be signed in to change notification settings - Fork 16
42 lines (40 loc) · 1.27 KB
/
sync.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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.