Skip to content

Commit

Permalink
ci: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
winchesHe committed May 19, 2024
1 parent a054980 commit 819ecfb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,29 @@ jobs:

- name: Clone target repository
run: |
git clone https://github.com/nextui-org/nextui.git
git clone https://github.com/winchesHe/nextui
- name: Run Sync docs
run: |
pnpm sync:docs
- name: Set up Git
run: |
git config --global user.name "winchesHe"
git config --global user.email "329487092@qq.com"
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Username: "winchesHe"
run: |
cd nextui
git add .
git config user.name "winchesHe"
git config user.email "329487092@qq.com"
git add -A .
git commit -m "docs: sync README.md from nextui-cli"
git push https://${{ secrets.GH_TOKEN }}@github.com/nextui-org/nextui.git
git push origin main
- name: Create a pull request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GH_TOKEN }}
commit-message: "docs: sync README.md from nextui-cli"
branch: sync-readme
branch: main
title: "docs: sync README.md from nextui-cli"
body: This PR was automatically created by GitHub Actions to sync README.md.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,5 +461,3 @@ Please adhere to this project's [CODE_OF_CONDUCT](https://github.com/nextui-org/
## License
[MIT](https://choosealicense.com/licenses/mit/)
## test

0 comments on commit 819ecfb

Please sign in to comment.