Skip to content

Commit 612f060

Browse files
committed
debugging
1 parent 8259b85 commit 612f060

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/release-readiness.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)