Skip to content

OpenAPI

OpenAPI #274

Workflow file for this run

name: OpenAPI
on:
schedule:
- cron: "0 0 * * 5"
workflow_dispatch:
jobs:
update-openapi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- 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@v7
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@v6
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: [email protected]
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.