-
Notifications
You must be signed in to change notification settings - Fork 16
37 lines (30 loc) · 1.27 KB
/
app_from_contentful.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
37
name: Generate Apps header and appdocs files
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install Jinja2 requests contentful
- name: Generate Markdown files
env:
CONTENTFUL_ACCESS_TOKEN: ${{ secrets.CONTENTFUL_GRAPHQLTOKEN }}
run: |
python builds/gen_md_from_contenful.py template/meta/zh_head.jinja2 docs/apps/_include --override
python builds/gen_md_from_contenful.py template/meta/en_head.jinja2 i18n/en/docusaurus-plugin-content-docs/current/apps/_include --override
python builds/gen_md_from_contenful.py template/meta/zh_app.jinja2 docs/apps --ignore-list template/meta/skip_file.json
python builds/gen_md_from_contenful.py template/meta/en_app.jinja2 i18n/en/docusaurus-plugin-content-docs/current/apps --ignore-list template/meta/skip_file.json
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automated generation product markdown header