Sync OpenAPI Specs #32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |