Skip to content

build(deps): update node.js to v22.16.0 (#1261) #503

build(deps): update node.js to v22.16.0 (#1261)

build(deps): update node.js to v22.16.0 (#1261) #503

name: Release(openapi)
on:
push:
branches:
- 'master'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
openapi:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-js-env
- run: pnpm run file ./bin/export-openapi.ts
- uses: actions/checkout@v4
with:
repository: 'bangumi/dev-docs'
path: dev-docs
- run: cp ./dist/private.yaml ./dev-docs/api.yaml
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
path: dev-docs
token: ${{ secrets.PAT }}
title: Update Private Openapi Specification from bangumi/server-private
push-to-fork: bangumi-bot/dev-docs
branch: 'update-upstream-graphql'
author: 'bangumi-bot <[email protected]>'
committer: 'bangumi-bot <[email protected]>'