Skip to content

Commit

Permalink
chore: Use root versions.txt file (#8795)
Browse files Browse the repository at this point in the history
  • Loading branch information
lqiu96 authored Nov 15, 2022
1 parent d3cd2c9 commit 4864a8d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .kokoro/release/publish_javadoc11.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ fi
# work from the git root directory
pushd $(dirname "$0")/../../

root_dir=$(pwd)

python3 --version

# install docuploader package
Expand Down Expand Up @@ -66,8 +68,8 @@ for module in "${modules[@]}"; do
pushd $module
# Extract Cloud RAD module name from `distribution_name` in .repo-metadata.json
NAME=$(grep -o '"distribution_name": "[^"]*' .repo-metadata.json | grep -o '[^"]*$' | cut -d ':' -f 2)
# Extract (current) version from versions.txt and remove `-SNAPSHOT`
VERSION=$(grep "^${NAME}:" versions.txt | cut -d: -f3 | sed -e 's/-SNAPSHOT//g')
# Extract (current) version from root `versions.txt` file and remove `-SNAPSHOT`
VERSION=$(grep "^${NAME}:" "${root_dir}/versions.txt" | cut -d: -f3 | sed -e 's/-SNAPSHOT//g')
echo "Running for ${NAME}-${VERSION}"

# Cloud RAD generation
Expand Down

0 comments on commit 4864a8d

Please sign in to comment.