yuque to readme
ActionsTags
(2)This action will embed contents of yuque into README.md
.
Required 语雀的 token,去 https://www.yuque.com/settings/tokens 里找。需要读取你的知识库和文档
Required 空间标识。比如语雀的博客: yuque/blog
模板文件名。语法是 handlebars,生成 markdown。
输出文件名。默认是写到 README.md
on: [push]
jobs:
hello_world_job:
runs-on: ubuntu-latest
name: A job to say hello
steps:
# To use this repository's private action,
# you must check out the repository
- name: Checkout
uses: actions/checkout@v2
- name: Hello world action step
uses: ./ # Uses an action in the root directory
id: hello
with:
yuque-token: ${{secrets.YUQUE_TOKEN}}
yuque-namespace: 'luchen/buzhou'
yuque-output-file: README.output.md
- name: Result
run: |-
cat README.md
- name: Commit and push if changed
run: |-
git add .
git diff
git config --global user.email "github-action-bot@example.com"
git config --global user.name "GitHub Action Bot"
git commit -m "Updated README" -a || echo "No changes to commit"
git push
yuque to readme is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.