-
-
Notifications
You must be signed in to change notification settings - Fork 43
44 lines (41 loc) · 1.27 KB
/
sdk-unstable-branch.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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-22.04
if: ${{ contains(github.repository_owner, 'jellyfin') }}
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: master
token: ${{ secrets.JF_BOT_TOKEN }}
- name: Setup Java
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.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 [email protected]
git checkout -B openapi-unstable
git add .
git commit --allow-empty -m "Update OpenAPI to unstable"
git push --force origin openapi-unstable