Skip to content

Generate json schemas #1

Generate json schemas

Generate json schemas #1

name: Generate json schemas
on:
workflow_dispatch:
inputs:
version:
required: true
type: string
description: |
Kong Gateway release, e.x. 3.4.x.
Used by some commands for storing files in the corresponding folder.
jobs:
generate-json-schemas:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/reusable-steps/install-deps
- name: Run convert_json_schema
run: |
bundle exec ./plugins convert_json_schema --version=${{ github.event.inputs.version }} --plugins $(ls ./schemas) --verbose
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.PAT }}
title: "Generate JSON Schemas for ${{ github.event.inputs.version }}"
branch: generate-json-schemas
commit-message: "JSON Schemas for ${{ github.event.inputs.version }}"
delete-branch: true
add-paths: |
./json_schemas/*