123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- 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
|