-
-
Notifications
You must be signed in to change notification settings - Fork 131
75 lines (70 loc) · 2.51 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: OpenAPI
on:
schedule:
- cron: "0 0 * * 5"
workflow_dispatch:
jobs:
update-openapi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install minimal nightly with rustfmt
uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly
components: rustfmt
- uses: davidB/rust-cargo-make@v1
- name: regenerate openapi
uses: clechasseur/rs-cargo@v2
with:
command: make
args: openapi-install-latest
- name: verify
id: verify
# currently waiting for https://github.com/actions-rs/cargo/pull/206
# so we use this in the mean time
uses: arlyon/[email protected]
with:
command: make
args: verify
- name: duplicates
id: duplicates
# currently waiting for https://github.com/actions-rs/cargo/pull/206
# so we use this in the mean time
uses: arlyon/[email protected]
with:
command: make
args: duplicates
- name: create pull request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.REPO_SCOPED_TOKEN }}
commit-message: "feat: generate latest changes from OpenApi spec"
title: Generate latest changes from OpenApi spec
body: |
This is an automated PR that tries to build the latest changes generated from the [Stripe OpenApi spec](https://github.com/stripe/openapi).
Here are the missing exports:
```
${{ steps.verify.outputs.stdout }}
```
Here are the duplicate exports:
```
${{ steps.duplicates.outputs.stdout }}
```
branch: openapi
branch-suffix: timestamp
reviewers: arlyon
- name: email if failed
if: failure()
uses: dawidd6/action-send-mail@v3
with:
server_address: ${{ secrets.MAIL_SERVER }}
server_port: 465
username: ${{ secrets.MAIL_USERNAME }}
password: ${{ secrets.MAIL_PASSWORD }}
subject: Failed to generate latest changes from OpenApi spec
from: Github Actions
body: |
This is an automated email. The workflow that tries to build the latest changes generated from the [Stripe OpenApi spec](https://github.com/stripe/openapi).
Please visit ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} to determine what failed.