Build and publish single-file Onfido OpenAPI specs #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |