-
Notifications
You must be signed in to change notification settings - Fork 76
32 lines (30 loc) · 855 Bytes
/
main.yml
File metadata and controls
32 lines (30 loc) · 855 Bytes
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
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