File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Sync OpenAPI Specs # can be customized
2+ on : # additional custom triggers can be configured, examples below
3+ workflow_dispatch : # manual dispatch
4+ push :
5+ branches :
6+ - main # on push to main
7+ schedule :
8+ - cron : ' 0 3 * * *' # everyday at 3:00 AM UTC
9+
10+ jobs :
11+ update-from-source :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+ with :
16+ token : ${{ secrets.OPENAPI_SYNC_TOKEN }}
17+ - name : Update API with Fern
18+ uses : fern-api/sync-openapi@v2
19+ with :
20+ update_from_source : true
21+ token : ${{ secrets.OPENAPI_SYNC_TOKEN }}
22+ branch : ' update-api'
23+ auto_merge : false # you MUST use auto_merge: true with branch: main
24+ add_timestamp : true
Original file line number Diff line number Diff line change 44 specs :
55 - openapi : ../docs/api-reference/openapi.json
66 overrides : overrides.yml
7+ origin : https://api.klavis.ai/openapi.json # URL to fetch latest spec from
78
89groups :
910 python-sdk :
You can’t perform that action at this time.
0 commit comments