Skip to content

SDK / Unstable branch #1656

SDK / Unstable branch

SDK / Unstable branch #1656

name: SDK / Unstable branch
on:
schedule:
- cron: '0 4 * * *'
workflow_dispatch:
push:
branches:
- master
concurrency:
group: unstable-branch
jobs:
update:
name: Update
runs-on: ubuntu-24.04
if: ${{ contains(github.repository_owner, 'jellyfin') }}
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: master
token: ${{ secrets.JF_BOT_TOKEN }}
- name: Setup Java
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2
- name: Run updateApiSpecUnstable task
run: ./gradlew :openapi-generator:updateApiSpecUnstable
- name: Run apiDump task
run: ./gradlew apiDump
- name: Commit changes
if: always()
run: |
git config user.name jellyfin-bot
git config user.email [email protected]
git checkout -B openapi-unstable
git add .
git commit --allow-empty -m "Update OpenAPI to unstable"
git push --force origin openapi-unstable