SDK / Unstable branch #2308
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| ref: master | |
| token: ${{ secrets.JF_BOT_TOKEN }} | |
| - name: Setup Java | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.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 team@jellyfin.org | |
| git checkout -B openapi-unstable | |
| git add . | |
| git commit --allow-empty -m "Update OpenAPI to unstable" | |
| git push --force origin openapi-unstable |