Open obriensystems opened 1 year ago
Use the main release for all kpt packages until we fix the URL and the json parsing around URL="https://api.github.com/repos/GoogleCloudPlatform/pubsec-declarative-toolkit/releases" see PR https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/pull/543
From Chris URL="https://raw.githubusercontent.com/GoogleCloudPlatform/pubsec-declarative-toolkit/main/.release-please-manifest.json"
All SH fragments in readme docs are tested either in isolation or as part of a full setup script
michael@cloudshell:~/_t$ URL="https://raw.githubusercontent.com/GoogleCloudPlatform/pubsec-declarative-toolkit/main/.release-please-manifest.json"
michael@cloudshell:~/_t$ PACKAGE="solutions/client-setup"
michael@cloudshell:~/_t$ VERSION=$(curl -s $URL | jq -r ".\"$PACKAGE\"")
michael@cloudshell:~/_t$ echo $VERSION
0.6.1
see section 2 https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/tree/main/docs/landing-zone-v2#folder-structure-per-environment-dev-preprod-prod history https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/commit/d6694fb3428eb3c9799476bf4d35b2bc0517e5cd
add all 4 specific URLs per package
or workaround - just get main for now
adjustment
we are looking for the following format in html - getting json
json URL="https://api.github.com/repos/GoogleCloudPlatform/pubsec-declarative-toolkit/releases"