Skip to content

Build and publish single-file Onfido OpenAPI specs #6

Build and publish single-file Onfido OpenAPI specs

Build and publish single-file Onfido OpenAPI specs #6

name: generate-single-openapi-spec
run-name: Build and publish single-file Onfido OpenAPI specs
on:
push:
branches:
- main
pull_request:
jobs:
build-single-files:
runs-on: ubuntu-latest
container:
image: openapitools/openapi-generator-cli:v7.3.0
steps:
- uses: actions/checkout@v4
- name: Install pre-requisites
run: |
apt-get update
apt-get install gettext-base
- name: Build single-file Onfido OpenAPI defintions
run: |
OPENAPI_GENERATOR_COMMAND=docker-entrypoint.sh \
./generator/script/generate.sh \
generator/configuration/openapi.yaml \
generator/configuration/openapi-yaml.yaml