generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (30 loc) · 1.03 KB
/
generate-types.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
name: Generate Types
on:
workflow_dispatch:
env:
NODE_ENV: test
API_CLIENT_ID: approved-premises
API_CLIENT_SECRET: clientsecret
jobs:
generate-types:
runs-on: ubuntu-latest
steps:
- name: Generate Token
uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Check out code
uses: actions/[email protected]
- name: Generate Types
run: ./script/generate-types
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ steps.generate-token.outputs.token }}
title: 'API model updates'
commit-message: 'Updating hmpps-approved-premises-api models from OpenAPI specification'
body: 'Updating hmpps-approved-premises-api models from OpenAPI specification. This PR was created automatically from the generate-types.yml Workflow'
delete-branch: true
branch: update-api-types