-
Notifications
You must be signed in to change notification settings - Fork 62
51 lines (44 loc) · 1.4 KB
/
release-openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Release(openapi)
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
jobs:
openapi:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- run: npm ci
- run: npm run build
- uses: actions/checkout@v4
with:
repository: "bangumi/api"
path: api
- run: cp ./dist/v0.yaml ./api/open-api/v0.yaml
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
path: api
token: ${{ secrets.PAT }}
title: Update Openapi Specification from bangumi/server
push-to-fork: Trim21-bot/api
branch: "update-upstream"
author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
- 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@v4
# with:
# path: dev-docs
# token: ${{ secrets.PAT }}
# title: Update Openapi Specification from bangumi/server
# push-to-fork: Trim21-bot/dev-docs
# branch: "update-upstream"
# author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"