api: split pulling API changes and regenerating new API
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`.
This commit is contained in:
parent
82e096a19c
commit
25144511ad
5 changed files with 27 additions and 5 deletions
12
api/codegen.sh
Normal file
12
api/codegen.sh
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#!/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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue