Skip to content

Generate Apps header file #4

Generate Apps header file

Generate Apps header file #4

Workflow file for this run

name: Generate Apps header file
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 build/gen_md_header.py template/meta/zh.jinja2
python build/gen_md_header.py template/meta/en.jinja2
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automated generation product markdown header