Skip to content

Commit 6b0c709

Browse files
committed
Revert "ci: split actions"
This reverts commit 8b67e58.
1 parent d2edc56 commit 6b0c709

2 files changed

Lines changed: 31 additions & 66 deletions

File tree

.github/workflows/gen-api.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.
Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
name: Sync API docs
1+
name: Update API
22

33
on:
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

810
jobs:
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
@@ -59,7 +82,7 @@ jobs:
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 }}

0 commit comments

Comments
 (0)