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