소스 검색

Added generation for dart

Alex Tran 2 년 전
부모
커밋
c3d7dda61f
1개의 변경된 파일16개의 추가작업 그리고 1개의 파일을 삭제
  1. 16 1
      .github/workflows/openapi-generator.yml

+ 16 - 1
.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