Use sed to automatically update api version

This commit is contained in:
Bill Thornton 2022-08-22 14:59:39 -04:00
parent cdb00eab13
commit 71b15c9fdb
2 changed files with 3 additions and 2 deletions

View File

@ -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'

View File

@ -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';