mirror of
https://github.com/immich-app/immich.git
synced 2024-11-28 09:33:27 +02:00
Added generation for dart
This commit is contained in:
parent
c4e32ce159
commit
c3d7dda61f
17
.github/workflows/openapi-generator.yml
vendored
17
.github/workflows/openapi-generator.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user