Skip to content

added activity tracker #32

added activity tracker

added activity tracker #32

name: Build Open Api Spec
on:
push:
branches: [ "master" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Generate openapi.json
run: |
python ./webserver/gen_openapi.py
- name: Commit openapi.json
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git pull
git add --force ./docs/openapi.json
git diff-index --quiet HEAD || git commit -m "Automated openapi.json build" && git push