List evolution patch (#74) #82
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: push the docs to the linux-zh repo | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build_job: | |
runs-on: ubuntu-20.04 | |
name: Build documentation | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
path: source | |
- name: checkout linux-kernel-labs-zh/linux-zh middle | |
uses: actions/checkout@v2 | |
with: | |
repository: linux-kernel-labs-zh/linux-zh | |
path: middle | |
token: ${{ secrets.DEPLOY_KEY }} | |
- name: Copy source file to linux-zh repo | |
run: cp -r source/* middle/Documentation/teaching | |
- name: Commit and push changes | |
run: | | |
cd middle | |
git config user.name 'actionBot' | |
git config user.email github-actions@github.com | |
git add . | |
git commit -m "changed at $(date -u)" | |
git push |