Skip to content

Commit a2f3455

Browse files
committed
fix(oas-download): copy version locked api specs to oas/services
STACKITSDK-399
1 parent 2c9c6be commit a2f3455

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/download-oas.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ EOF
6161
fi
6262
cd ${work_dir}/${OAS_REPO_NAME} >/dev/null
6363
git checkout -q $apiVersion || (echo "version ${apiVersion} does not exist, using main instead" && git checkout -q main)
64+
# overwrite main checkout with version locked checkout
65+
cp -r ${service_dir} ${ROOT_DIR}/oas/services/
6466

6567
# write commit hash to oas_commits file, normalize name first to match service name in sdk-create-pr.sh, normalization
6668
# occurs in go/java/python.sh when creating the SDK modules

0 commit comments

Comments
 (0)