-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (34 loc) · 963 Bytes
/
convert.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
45
name: Convert Lexicons to OpenAPI
on:
push:
branches:
- main
schedule:
- cron: "0 */2 * * *" # every 2 hours
jobs:
convert:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Check formatting
run: deno fmt --check
- name: Run linter
run: deno lint
- name: Cache dependencies
run: deno cache main.ts
- name: Get latest copy of bluesky-social/atproto lexicons
run: ./scripts/get-lexicons.sh
- name: Convert lexicons to OpenAPI spec
run: deno task run
- name: Commit OpenAPI spec updates
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: spec/api.json updated
file_pattern: lexicons/ spec/api.json