Skip to content

Commit

Permalink
Create generate-api-client.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
numanbtt authored Sep 5, 2023
1 parent 1adb4f9 commit 6ac8347
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/generate-api-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Generate API Client

on:
push:
branches:
- main

jobs:
generate-api-client:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Install Dependencies
run: npm install

- name: Generate API Client
run: npx @openapitools/openapi-generator-cli generate -i swagger.json -g typescipt-fetch -o ./api-client

- name: Commit Generated Code
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git add ./api-client
git commit -m "Update generated API client"
git push

0 comments on commit 6ac8347

Please sign in to comment.