Skip to content

Commit 7b6948e

Browse files
feat(deploy): update OpenAPI spec generation and remove outdated workflow
1 parent 7afc38c commit 7b6948e

2 files changed

Lines changed: 12 additions & 53 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,21 @@ jobs:
2525
- name: Install dependencies
2626
run: bun install
2727

28-
- name: Generate & verify OpenAPI spec
28+
- name: Generate OpenAPI spec
2929
run: |
3030
bun run openapi
3131
bun run prettier --write data/openapi.json || true
32-
if ! git diff --quiet data/openapi.json; then
33-
echo "::error::data/openapi.json is out of date. Run the OpenAPI Update PR workflow (or re-run it) so the spec is committed before merging to main.";
34-
echo "Changes detected:";
35-
git --no-pager diff --name-only data/openapi.json;
36-
exit 1;
32+
33+
- name: Commit updated spec (if changed)
34+
run: |
35+
if git diff --quiet data/openapi.json; then
36+
echo "No OpenAPI spec changes"
37+
else
38+
git config user.name "openapi-bot"
39+
git config user.email "openapi-bot@users.noreply.github.com"
40+
git add data/openapi.json
41+
git commit -m "chore: update openapi spec [skip ci]"
42+
git push
3743
fi
3844
3945
- name: Deploy to Cloudflare Workers

.github/workflows/openapi-update.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)