Skip to content

Commit 2bd4a77

Browse files
committed
CLOUDP-278958: remove params
1 parent ac85871 commit 2bd4a77

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

tools/postman/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,5 @@ Once env vars are configured, the setup scripts can be run locally using the Mak
9191

9292
## Automatic updates
9393

94-
Postman collection is regerented automatically by github action [`release-spec.yml`](../../.github/workflows/release-spec.yml)
94+
Postman collection is regenerated automatically by github action [`release-spec.yml`](../../.github/workflows/release-spec.yml).
95+
You can also trigger release process manually by running[`release-postman.yml`](../../.github/workflows/release-postman.yml).

tools/postman/scripts/transform-for-api.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,15 @@ jq --arg desc "$description" \
5959
'.collection.info.description.content = $desc' \
6060
intermediateCollectionWithName.json > intermediateCollectionWithDescription.json
6161

62+
echo "Removing all variables. We use environment for variables instead"
63+
jq --arg base_url "$BASE_URL" \
64+
'.collection.variable = []' \
65+
intermediateCollectionWithDescription > intermediateCollectionWithNoVarjson.json
66+
6267
echo "Adding baseUrl env $BASE_URL"
6368
jq --arg base_url "$BASE_URL" \
6469
'.collection.variable[0].value = $base_url' \
65-
intermediateCollectionWithDescription.json > intermediateCollectionWithBaseURL.json
70+
intermediateCollectionWithNoVarjson.json > intermediateCollectionWithBaseURL.json
6671

6772
if [ "$TOGGLE_ADD_DOCS_LINKS" = "true" ]; then
6873
echo "Adding links to docs for each request"

0 commit comments

Comments
 (0)