mirror of
https://github.com/jellyfin/jellyfin-sdk-typescript.git
synced 2024-10-07 03:13:35 +00:00
Use sed to automatically update api version
This commit is contained in:
parent
cdb00eab13
commit
71b15c9fdb
4
.github/workflows/sdk-update-api-spec.yaml
vendored
4
.github/workflows/sdk-update-api-spec.yaml
vendored
@ -36,7 +36,9 @@ jobs:
|
||||
- name: Update generated sources and create pull request
|
||||
uses: technote-space/create-pr-action@95c1e76dc9b65848afe397ea156666021f2e8243 # tag=v2
|
||||
with:
|
||||
EXECUTE_COMMANDS: npm run build:generated-client
|
||||
EXECUTE_COMMANDS: |
|
||||
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 }}'
|
||||
COMMIT_NAME: 'jellyfin-bot'
|
||||
COMMIT_EMAIL: 'team@jellyfin.org'
|
||||
|
@ -16,7 +16,6 @@ export interface JellyfinParameters {
|
||||
deviceInfo: DeviceInfo
|
||||
}
|
||||
|
||||
// NOTE: This must be updated manually on updates.
|
||||
/** The current API version of the generated client. */
|
||||
export const API_VERSION = '10.8.1';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user