Skip to content

Commit

Permalink
fix: ts file detection missed other js file locations
Browse files Browse the repository at this point in the history
  • Loading branch information
bmiller08 committed Sep 22, 2022
1 parent cd0a7a7 commit 12a608f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update_cdk_version_in_projen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ if [ ! -f "${local_file}" ]; then
exit 1
fi
fi
local_version=$( grep cdkVersion ${localfile} | awk ' { print $2 } ' | sed -e "s/'//g" -e 's/,//' )
local_version=$( grep cdkVersion ${local_file} | awk ' { print $2 } ' | sed -e "s/'//g" -e 's/,//' )

if [ "$release_version" = "$local_version" ]; then
echo "No need to upgrade CDK version"
else
echo "Upgrading CDK version from $local_version to $release_version"
echo "::set-output name=previous_version::$local_version"
echo "::set-output name=new_version::$release_version"
sed -i "s/cdkVersion: '$local_version'/cdkVersion: '$release_version'/g" .projenrc.js
sed -i "s/cdkVersion: '$local_version'/cdkVersion: '$release_version'/g" ${local_file}
# # remove the lock file so we can update appropriately for the new CDK version
# rm yarn.lock
if npx projen --no-post && yarn install && npx jest test; then
Expand Down

0 comments on commit 12a608f

Please sign in to comment.