mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-06 04:20:40 +00:00
substantial cleaning and sorting
This commit is contained in:
27
.github/workflows/build-and-copy-spec.yml
vendored
27
.github/workflows/build-and-copy-spec.yml
vendored
@@ -21,18 +21,37 @@ jobs:
|
||||
- name: Install swagger-cli
|
||||
run: |
|
||||
npm install -g swagger-cli
|
||||
- name: Dereference Plex API Specification
|
||||
|
||||
- name: Dereference Plex Media Server Specification
|
||||
run: |
|
||||
swagger-cli bundle --dereference referenced/plex-api-spec.yaml -t yaml -o plex-api-spec-dereferenced.yaml
|
||||
swagger-cli bundle --dereference pms/pms-spec.yaml -t yaml -o plex-media-server-spec-dereferenced.yaml
|
||||
|
||||
- name: Dereference Plex TV Specification
|
||||
run: |
|
||||
swagger-cli bundle --dereference plextv/plextv-spec.yaml -t yaml -o plex-tv-spec-dereferenced.yaml
|
||||
|
||||
- name: Pushes Dereferenced Specification File
|
||||
uses: dmnemec/copy_file_to_another_repo_action@main
|
||||
env:
|
||||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
||||
with:
|
||||
source_file: plex-api-spec-dereferenced.yaml
|
||||
source_file: plex-media-server-spec-dereferenced.yaml
|
||||
destination_repo: lukehagar/plex-docs
|
||||
destination_folder: static
|
||||
user_email: lukeslakemail@gmail.com
|
||||
user_name: lukehagar
|
||||
commit_message: Updating OpenAPI Spec
|
||||
commit_message: Updating PMS Spec
|
||||
|
||||
- name: Pushes Dereferenced Specification File
|
||||
uses: dmnemec/copy_file_to_another_repo_action@main
|
||||
env:
|
||||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
||||
with:
|
||||
source_file: plex-tv-spec-dereferenced.yaml
|
||||
destination_repo: lukehagar/plex-docs
|
||||
destination_folder: static
|
||||
user_email: lukeslakemail@gmail.com
|
||||
user_name: lukehagar
|
||||
commit_message: Updating PlexTV Spec
|
||||
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
|
||||
11
.github/workflows/build-typescript-sdk.yml
vendored
11
.github/workflows/build-typescript-sdk.yml
vendored
@@ -36,8 +36,15 @@ jobs:
|
||||
id: buildTS
|
||||
run: |
|
||||
cd sdk-ts
|
||||
rm -rf plexjs/
|
||||
java -jar openapi-generator-cli.jar generate -i ../referenced/plex-api-spec.yaml -g typescript-axios -o plexjs/ --global-property skipFormModel=false --config config.yaml
|
||||
rm -rf plexjs/pms
|
||||
java -jar openapi-generator-cli.jar generate -i ../pms/pms-spec.yaml -g typescript-axios -o plexjs/pms --global-property skipFormModel=false --config sdk-resources/pms-config.yaml
|
||||
|
||||
- name: Build TS SDK
|
||||
id: buildTS
|
||||
run: |
|
||||
cd sdk-ts
|
||||
rm -rf plexjs/plextv
|
||||
java -jar openapi-generator-cli.jar generate -i ../plextv/plextv-spec.yaml -g typescript-axios -o plexjs/plextv --global-property skipFormModel=false --config sdk-resources/plextv-config.yaml
|
||||
|
||||
- name: Run npm install and build Typescript SDK
|
||||
id: buildSDK
|
||||
|
||||
Reference in New Issue
Block a user