Skip to content

Commit e56f999

Browse files
committed
parameterized package name
1 parent c5d7f93 commit e56f999

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/generate_api.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
pull_request:
88
branches:
99
- main
10+
env:
11+
PACKAGE_NAME: macrobond # Define your package name here
1012

1113
jobs:
1214
process-yaml:
@@ -44,7 +46,7 @@ jobs:
4446
- name: Generate API
4547
run: |
4648
cd external-repo/Software
47-
npx @openapitools/openapi-generator-cli --custom-generator MATLAB/lib/jar/MATLABClientCodegen-openapi-generator-0.0.1.jar generate -g MATLAB -i https://api.macrobondfinancial.com/swagger/v1/swagger.json -o macrobond --package-name macrobond
49+
npx @openapitools/openapi-generator-cli --custom-generator MATLAB/lib/jar/MATLABClientCodegen-openapi-generator-0.0.1.jar generate -g MATLAB -i https://api.macrobondfinancial.com/swagger/v1/swagger.json -o macrobond --package-name ${{ env.PACKAGE_NAME }}
4850
4951
- name: Configure Git
5052
run: |

0 commit comments

Comments
 (0)