Generate latest definitions files #647
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Generate latest definitions files" | |
| env: | |
| VS_WORKFLOW_TYPE: "trigger-postman" | |
| on: | |
| workflow_dispatch: | |
| permissions: write-all | |
| jobs: | |
| generate: | |
| name: "Generate latest definitions files" | |
| 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/generateAll.sh | |
| - uses: stefanzweifel/git-auto-commit-action@v4 | |
| with: | |
| commit_message: "Update latest definitions files" |