Update OpenAPI schemas #117
This file contains 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: Publish OpenAPI definitions to ReadMe | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '*-api/**.json' | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Sync Public API definition | |
uses: readmeio/rdme@v10 | |
with: | |
rdme: openapi upload core-api/core-api.json --key=${{ secrets.README_API_KEY }} | |
- name: Sync Channel API definition | |
uses: readmeio/rdme@v10 | |
with: | |
rdme: openapi upload channel-api/channel-api.json --key=${{ secrets.README_API_KEY }} |