File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Sync API docs
1+ name : Update API
22
33on :
44 schedule :
5- - cron : " 0 3 * * *"
5+ - cron : " 0 3 * * 1"
6+ - cron : " 0 3 * * 4"
7+ - cron : " 0 3 * * 6"
68 workflow_dispatch :
79
810jobs :
9- sync -api-docs :
10- name : Sync API docs
11+ update -api :
12+ name : Update API
1113 runs-on : ubuntu-latest
1214 permissions :
1315 contents : write
@@ -39,15 +41,36 @@ jobs:
3941
4042 rm -rf lichess-api
4143
44+ - name : Setup Bun
45+ uses : oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
46+ with :
47+ bun-version-file : " .bun-version"
48+
49+ - name : Install dependencies
50+ run : bun ci
51+
52+ - name : Generate files
53+ run : bun run gen
54+
55+ - name : Build
56+ run : bun run build
57+
58+ - name : Typecheck code
59+ run : bun run typecheck
60+
61+ - name : Run tests
62+ run : bun run test
63+
4264 - name : Create or update Pull Request
4365 uses : peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
4466 with :
4567 token : ${{ secrets.CI_PAT }}
46- commit-message : " chore: sync api docs "
47- title : " chore: sync api docs "
68+ commit-message : " ci: update api"
69+ title : " ci: update api"
4870 committer : CI <ci@rman.dev>
4971 author : CI <ci@rman.dev>
50- branch : sync-api-docs
72+ body : Update API
73+ branch : update-api
5174 delete-branch : true
5275 assignees : gameroman
5376 reviewers : gameroman
5982 with :
6083 webhook : ${{ secrets.DISCORD_WEBHOOK }}
6184 status : ${{ job.status }}
62- title : " Sync API docs (#${{ github.run_number }})"
85+ title : " Update API (#${{ github.run_number }})"
6386 description : |
6487 Status: **${{ job.status }}**
6588 Branch: ${{ github.ref_name }}
You can’t perform that action at this time.
0 commit comments