GitHub models REST API docs (#55288)
Co-authored-by: Roniece Ricardo <33437850+RonRicardo@users.noreply.github.com> Co-authored-by: Daniel Garman <garman@github.com> Co-authored-by: SiaraMist <siaramist@github.com> Co-authored-by: Evan Bonsignori <ebonsignori@github.com>
This commit is contained in:
11
.github/workflows/sync-openapi.yml
vendored
11
.github/workflows/sync-openapi.yml
vendored
@@ -42,6 +42,13 @@ jobs:
|
||||
path: rest-api-description
|
||||
ref: ${{ inputs.SOURCE_BRANCH }}
|
||||
|
||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||
with:
|
||||
# By default, only the most recent commit of the `main` branch
|
||||
# will be checked out
|
||||
repository: github/models-gateway
|
||||
path: models-gateway
|
||||
|
||||
- uses: ./.github/actions/node-npm-setup
|
||||
|
||||
- name: Sync the REST, Webhooks, and GitHub Apps schemas
|
||||
@@ -49,7 +56,9 @@ jobs:
|
||||
# Needed for gh
|
||||
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_BASE }}
|
||||
run: |
|
||||
npm run sync-rest -- --source-repo rest-api-description --output rest github-apps webhooks rest-redirects
|
||||
npm run sync-rest -- \
|
||||
--source-repos rest-api-description models-gateway \
|
||||
--output rest github-apps webhooks rest-redirects
|
||||
git status
|
||||
echo "Deleting the cloned github/rest-api-description repo..."
|
||||
rm -rf rest-api-description
|
||||
|
||||
Reference in New Issue
Block a user