forked from getsentry/sentry
51 lines (43 loc) · 1.29 KB
/
openapi.yml
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: openapi
on:
push:
branches:
- master
jobs:
deref_json:
runs-on: ubuntu-latest
steps:
- name: Getsentry Token
id: getsentry
uses: getsentry/action-github-app-token@v1
with:
app_id: ${{ secrets.SENTRY_INTERNAL_APP_ID }}
private_key: ${{ secrets.SENTRY_INTERNAL_APP_PRIVATE_KEY }}
- name: Checkout getsentry/sentry
uses: actions/checkout@v2
with:
path: sentry
- name: Checkout getsentry/sentry-api-schema
uses: actions/checkout@v2
with:
ref: 'main'
repository: getsentry/sentry-api-schema
path: sentry-api-schema
token: ${{ steps.getsentry.outputs.token }}
- uses: volta-cli/action@v1
- name: Build OpenAPI Derefed JSON
run: |
cd sentry
yarn install --frozen-lockfile
yarn run build-derefed-docs api-docs/openapi-derefed.json
- name: Copy artifact into getsentry/sentry-api-schema
run: |
cp sentry/api-docs/openapi-derefed.json sentry-api-schema
- name: Git Commit & Push
uses: stefanzweifel/git-auto-commit-action@v4
with:
repository: sentry-api-schema
branch: main
commit_message: Generated
commit_user_email: bot@getsentry.com
commit_user_name: openapi-getsentry-bot