-
-
Notifications
You must be signed in to change notification settings - Fork 177
46 lines (42 loc) · 1.65 KB
/
openapi.yml
File metadata and controls
46 lines (42 loc) · 1.65 KB
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
name: OpenAPI
on:
schedule:
- cron: "0 0 * * 5"
workflow_dispatch:
jobs:
update-openapi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install Rust with rustfmt
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Run Codegen
run: cargo run --release -- --fetch latest
working-directory: openapi
- name: create pull request
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.REPO_SCOPED_TOKEN }}
commit-message: 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).
branch: openapi
branch-suffix: timestamp
reviewers: arlyon
- name: email if failed
if: failure()
uses: dawidd6/action-send-mail@v11
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
to: arlyon@me.com
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.