Skip to content

Commit 39f1c00

Browse files
committed
fix error messages
1 parent 82a909d commit 39f1c00

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/release-readiness.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,16 @@ jobs:
1717
- name: Configure Gradle
1818
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
1919

20-
- name: Configure error message
21-
run: echo "ERROR_MESSAGE=WARNING smithy-kotlin release and version bump might be required before merging" >> $GITHUB_ENV
22-
2320
- name: Build SDK
24-
run: ./gradlew test jvmTest || { echo "$ERROR_MESSAGE"; exit 1; }
21+
run: ./gradlew test jvmTest
2522

2623
- name: Build SDK client
2724
run: |
28-
./gradlew -Paws.services=s3 -Paws.kotlin.native=false bootstrap || { echo "$ERROR_MESSAGE"; exit 1; }
29-
./gradlew -Paws.kotlin.native=false build || { echo "$ERROR_MESSAGE"; exit 1; }
25+
./gradlew -Paws.kotlin.native=false -Paws.services=s3 bootstrap
26+
./gradlew -Paws.kotlin.native=false build
27+
28+
- name: Emit error message
29+
if: ${{ failure() }}
30+
run: |
31+
echo "::error ::Build failed. Did you forget to release smithy-kotlin and bump the dependency version?"
32+
exit 1

0 commit comments

Comments
 (0)