From c3d7dda61ff6e621f78e02c67839df8d6f959cda Mon Sep 17 00:00:00 2001 From: Alex Tran Date: Thu, 6 Oct 2022 17:23:05 -0500 Subject: [PATCH] Added generation for dart --- .github/workflows/openapi-generator.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/openapi-generator.yml b/.github/workflows/openapi-generator.yml index 0f2899dab1..6526726758 100644 --- a/.github/workflows/openapi-generator.yml +++ b/.github/workflows/openapi-generator.yml @@ -27,7 +27,7 @@ jobs: openapi-file: server/immich-openapi-specs.json # Do something with the generated client (likely publishing it somewhere) - - name: Do something with the client + - name: Push to typescript repo run: | git config --global init.defaultBranch main git config --global pull.rebase false @@ -40,3 +40,18 @@ jobs: git remote add origin https://immich-app:"${{ secrets.GH_TOKEN }}"@github.com/immich-app/immich-sdk-typescript-axios.git git pull origin main --allow-unrelated-histories git push origin main 2>&1 | grep -v 'To https' + + - name: Generate Dart Client + uses: openapi-generators/openapitools-generator-action@v1 + with: + generator: dart + generator-tag: v6.2.0 + openapi-file: server/immich-openapi-specs.json + + - name: Push to Dart repo + run: | + git config --global init.defaultBranch main + git config --global pull.rebase false + git config --global user.email "alex.tran1502@gmail.com" + git config --global user.name "Alex Tran" + cd dart-client && ls