SDK / Unstable branch #1628
This file contains 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
ref: master | |
token: ${{ secrets.JF_BOT_TOKEN }} | |
- name: Setup Java | |
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0 | |
- 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 |