mirror of
https://github.com/jellyfin/jellyfin-sdk-typescript.git
synced 2024-10-07 03:13:35 +00:00
Fix schema reset in PR action
This commit is contained in:
parent
49fff8045a
commit
a21a482c34
2
.github/workflows/sdk-update-api-spec.yaml
vendored
2
.github/workflows/sdk-update-api-spec.yaml
vendored
@ -24,6 +24,7 @@ jobs:
|
||||
run: |
|
||||
curl -sL https://repo.jellyfin.org/releases/openapi/jellyfin-openapi-stable.json -o openapi.json
|
||||
npm run fix-schema
|
||||
cp openapi.json $HOME
|
||||
|
||||
- name: Set STABLE_API_VERSION
|
||||
run: |
|
||||
@ -37,6 +38,7 @@ jobs:
|
||||
uses: technote-space/create-pr-action@95c1e76dc9b65848afe397ea156666021f2e8243 # tag=v2
|
||||
with:
|
||||
EXECUTE_COMMANDS: |
|
||||
cp $HOME/openapi.json .
|
||||
npm run build:generated-client
|
||||
sed -i "s/API_VERSION = '.*'/API_VERSION = '${{ env.STABLE_API_VERSION }}'/" src/jellyfin.ts
|
||||
COMMIT_MESSAGE: 'Update generated sources to ${{ env.STABLE_API_VERSION }}'
|
||||
|
Loading…
Reference in New Issue
Block a user