-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 1.15 KB
/
yuque.yml
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
33
34
35
36
# name: Sync with Yuque
# on:
# push:
# branches:
# - main
# pull_request:
# branches:
# - main
# jobs:
# sync:
# # runs-on: ubuntu-latest
# runs-on: self-hosted
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
# - name: Get latest commit ID
# id: get_commit_id
# run: echo "::set-output name=commit_id::$(git rev-parse HEAD)"
# - name: Call Sync API
# run: |
# curl --location --request POST 'http://47.243.86.137:8777/v1/rest/sync' \
# --header 'Content-Type: application/json' \
# --data '{
# "inputs": {
# "yuqueNamespace": "eg6z1a/qpbul9",
# "yuqueSite": "https://mosn-layotto.yuque.com/",
# "yuqueToken":"TOdAggX2qQA20byXdw1qmfiJ2INwgATyf0uCUUM9",
# "gitRepo": "https://github.com/${{ github.repository }}",
# "gitDocRoot": "/",
# "gitDocToc": "SUMMARY.md",
# "gitCommitId": "${{ steps.get_commit_id.outputs.commit_id }}",
# "gitBranch": "main"
# }
# }'