Sync SDK #743
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: Sync SDK | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
# At 06:37 on every day-of-week from Monday through Friday. | |
- cron: '37 6 * * 1-5' | |
workflow_dispatch: | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
fetch_and_update: | |
name: Sync OpenAPI definition | |
uses: SocketDev/workflows/.github/workflows/reusable-sync.yml@master | |
secrets: inherit | |
with: | |
url: 'https://api.socket.dev/v0/openapi' | |
path: 'openapi.json' | |
branch-name: 'automated/open-api' | |
commit-message: 'fix(openapi): sync with openapi definition' | |
pr-title: 'Sync with OpenAPI definition' | |
pr-body: 'The OpenAPI definition in the API has been updated. This PR downloads the latest one and regenerates the SDK.' | |
npm-post-sync-script: 'generate-sdk' |