For checking wether the api was tempered with, we need separate action, that just checks the code against the currently pulled spec. This introduces two subactions for `npx api`. These are `npx api:generate` and `npx api:pull`.
12 lines
407 B
Bash
12 lines
407 B
Bash
#!/bin/bash
|
|
|
|
# Run commands in the background using & operator
|
|
npx @rtk-query/codegen-openapi ./api/config/imageBuilder.ts &
|
|
npx @rtk-query/codegen-openapi ./api/config/rhsm.ts &
|
|
npx @rtk-query/codegen-openapi ./api/config/contentSources.ts &
|
|
npx @rtk-query/codegen-openapi ./api/config/provisioning.ts &
|
|
npx @rtk-query/codegen-openapi ./api/config/edge.ts &
|
|
|
|
# Wait for all background jobs to finish
|
|
wait
|
|
|