mirror of
https://github.com/jlengrand/adyen-node-api-library.git
synced 2026-03-10 08:01:20 +00:00
31 lines
1.0 KiB
YAML
31 lines
1.0 KiB
YAML
name: Node.js Models
|
|
|
|
on: [ workflow_dispatch ]
|
|
|
|
jobs:
|
|
generate:
|
|
runs-on: ubuntu-latest
|
|
name: Generate Models
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- run: make models
|
|
- name: Set PR variables
|
|
id: vars
|
|
run: |
|
|
cd build/spec
|
|
echo ::set-output name=pr_title::"Update models"
|
|
echo ::set-output name=pr_body::"OpenAPI spec or templates produced new models on $(date +%d-%m-%Y) \
|
|
by [commit](https://github.com/Adyen/adyen-openapi/commit/$(git rev-parse HEAD))."
|
|
- name: Create Pull Request
|
|
uses: peter-evans/create-pull-request@v4
|
|
with:
|
|
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
|
|
committer: ${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}
|
|
author: ${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}
|
|
base: develop
|
|
branch: automation/models
|
|
title: ${{ steps.vars.outputs.pr_title }}
|
|
body: ${{ steps.vars.outputs.pr_body }}
|
|
add-paths: |
|
|
src/typings
|