Skip to content

Generate Postman json and commit #41

Generate Postman json and commit

Generate Postman json and commit #41

Workflow file for this run

name: "Generate Postman json and commit"
on:
workflow_dispatch:
inputs:
file:
description: 'OpenAPI filepath'
required: true
default: 'adyen-openapi/yaml/CheckoutService-v70.yaml'
jobs:
generate:
name: "Generate Postman Collection"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/checkout@v4
with:
repository: 'adyen/adyen-openapi'
fetch-depth: 0
path: 'adyen-openapi'
- uses: addnab/docker-run-action@v3
with:
image: ghcr.io/adyen-examples/openapi-generator-postman-v2:main
options: -v ${{ github.workspace }}:/usr/src/app
run: |
/usr/src/app/generatePostmanJsonFile.sh ${{ github.event.inputs.file }}
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Manual generation"