Skip to content

Generate Ruby Backend SDK #8

Generate Ruby Backend SDK

Generate Ruby Backend SDK #8

Workflow file for this run

name: Generate Ruby Backend SDK
on:
workflow_dispatch:
jobs:
generate-sdk:
runs-on: ubuntu-latest
name: Generate
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Move root to ./out
run: |
rm -rf ./out
mkdir ./out
shopt -s extglob
shopt -s dotglob
mv !(out) ./out
- name: Generate new client
uses: openapi-generators/openapitools-generator-action@v1
with:
generator: ruby
command-args: -o out --api-name-suffix=' '
config-file: out/sdk-generator-config.json
openapi-file: out/resources/oas/bapi-2024-10-01.yml
# openapi-url: https://raw.githubusercontent.com/clerk/openapi-specs/refs/heads/main/bapi/2024-10-01.yml
template-dir: out/resources/templates
- name: Move generated files to root
run: |
shopt -s extglob
shopt -s dotglob
mv -fv ./out/* .
rm -rv ./out
ls -la .
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
# Skips local testing with `act`
if: ${{ github.actor != 'nektos/act' }}
with:
title: "Generate Ruby Backend SDK"
body: "[Auto-generated]"
branch: "generate-ruby-backend-sdk"
commit-message: "Generate Ruby Backend SDK"
branch-suffix: "timestamp"
assignees: "tmilewski"
reviewers: "tmilewski"