File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -51,16 +51,18 @@ jobs:
5151 echo "smithy-kotlin branch: $SMITHY_KOTLIN_BRANCH"
5252
5353 if [ "$SDK_BRANCH" == "$SMITHY_KOTLIN_BRANCH" ]; then
54- echo "Branches match"
55- echo "Cd to sdk"
5654 cd ../aws-sdk-kotlin
57- echo "fetching origin"
5855 git fetch origin
59- echo "getting diff"
60- DIFF=$(git diff origin/main -- gradle/libs.versions.toml)
61- echo "$DIFF"
56+
57+ LIBS_DIFF=$(git diff origin/main -- gradle/libs.versions.toml)
58+ if [ -z "LIBS_DIFF" ]; then
59+ echo "::error::Matching smithy-kotlin and aws-sdk-kotlin branches but no smithy-kotlin version bump"
60+ exit 1
61+ fi
62+
63+ echo "LIBS_DIFF"
6264 echo "getting version bump"
63- SMITHY_KOTLIN_VERSION_BUMP=$(echo "$DIFF " | grep "smithy-kotlin-runtime-version =\|smithy-kotlin-codegen-version =")
65+ SMITHY_KOTLIN_VERSION_BUMP=$(echo "LIBS_DIFF " | grep "smithy-kotlin-runtime-version =\|smithy-kotlin-codegen-version =")
6466 echo "$SMITHY_KOTLIN_VERSION_BUMP"
6567
6668 if [ -z "$SMITHY_KOTLIN_VERSION_BUMP" ]; then
You can’t perform that action at this time.
0 commit comments