Skip to content

feat(ci): auto-generate latest SDK #3

feat(ci): auto-generate latest SDK

feat(ci): auto-generate latest SDK #3

Workflow file for this run

name: Generate
on:
workflow_dispatch: {}
pull_request:
paths:
- openapi.json
branches:
- main
env:
GOPRIVATE: "github.com/sumup/*"
jobs:
generate:
name: Generate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: '1.22'
- run: git config --global url."https://x-access-token:${{ secrets.GH_ACTIONS_PAT_2 }}@github.com/".insteadOf "https://github.com/"
- run: go install github.com/sumup/gogenitor@latest
- run: gogenitor --out . --specs ./openapi.json