Skip to content

Sync OpenAPI Specs

Sync OpenAPI Specs #32

Workflow file for this run

name: Sync OpenAPI Specs # can be customized
on: # additional custom triggers can be configured, examples below
workflow_dispatch: # manual dispatch
push:
branches:
- main # on push to main
schedule:
- cron: '0 3 * * *' # everyday at 3:00 AM UTC
jobs:
update-from-source:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.OPENAPI_SYNC_TOKEN }}
- name: Update API with Fern
uses: fern-api/sync-openapi@v2
with:
update_from_source: true
token: ${{ secrets.OPENAPI_SYNC_TOKEN }}
branch: 'update-api'
auto_merge: false
add_timestamp: true