Skip to content

Commit

Permalink
Update sync-tutorials.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AmazingAng committed May 29, 2024
1 parent f112384 commit 215efe4
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/sync-tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,28 @@ jobs:
- name: Checkout Frontend Repo
uses: actions/checkout@v2
with:
repository: 'WTFAcademy/frontend'
path: 'frontend'
fetch-depth: 0 # 确保能获取所有分支和标签

- name: Configure Git
run: git config --get remote.origin.url
working-directory: ./frontend

- name: Sync WTF Ethers Tutorials
run: |
git clone https://github.com/WTFAcademy/WTF-Ethers.git
cp -r WTF-Ethers/0{1..9}_* frontend/docs/ethers-101/
cp -r WTF-Ethers/10_* frontend/docs/ethers-101/
rm -rf WTF-Ethers
working-directory: ./frontend

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GH_TOKEN }}
commit-message: Update tutorials
title: "Update Tutorials"
body: "This is an automated PR to update tutorials"
branch: "update-tutorials-${{ github.run_id }}"
base: "main"
labels: "automated pr"

token: ${{ secrets.GH_TOKEN }} # 确保使用正确的访问令牌
commit-message: Update tutorials
title: "Update Tutorials"
body: "This is an automated PR to update tutorials"
branch: "update-tutorials-${{ github.run_id }}"
base: "main"
labels: "automated pr"

0 comments on commit 215efe4

Please sign in to comment.