Skip to content

docs: test

docs: test #20

Workflow file for this run

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 ../

Check failure on line 27 in .github/workflows/sync.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/sync.yml

Invalid workflow file

You have an error in your yaml syntax on line 27
- 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.