Skip to content

Generate JSON Schemas #129

Generate JSON Schemas

Generate JSON Schemas #129

Workflow file for this run

name: Generate JSON Schemas
on:
workflow_dispatch:
schedule:
- cron: "00 18 * * 0"
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Build openapi2jsonschema image
run: docker build . --file Dockerfile --tag openapi2jsonschema:latest
- name: Delete folders to regenerate
run: "rm -rf standalone/*"
- name: Generate
run: make gen && date > standalone/.last_synced.txt
env:
GITHUB_TOKEN: ${{ secrets.INFRABOT_TOKEN }}
- name: Commit new schemas
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Adding new schemas
commit_user_name: Onderwijs Infrastructure Bot
commit_user_email: [email protected]
commit_author: Onderwijs Infrastructure Bot <[email protected]>