Skip to content

Commit 66e08ff

Browse files
committed
fix verify codegen version bump
1 parent 6ed9f99 commit 66e08ff

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

buildSrc/src/main/kotlin/tasks/VerifyCodegenVersionBump.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ open class VerifyCodegenVersionBump : DefaultTask() {
5555
project.exec {
5656
commandLine("git", "diff", "--name-only", effectiveBaseRef, "HEAD", "--", projectName)
5757
standardOutput = changesOutput
58-
isIgnoreExitValue = true
5958
}
6059

6160
if (changesOutput.toString().isNotEmpty()) {

tools/ci-scripts/check-codegen-version

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@
66

77
set -eux
88
cd smithy-rs
9+
# GH actions generally does a shallow checkout, we need to fetch the base ref for diffing to work
10+
BASE_REF="${GITHUB_BASE_REF:=main}"
11+
echo "fetching base ref $BASE_REF from origin"
12+
git fetch --no-tags --progress --no-recurse-submodules --depth=1 origin $BASE_REF
913
./gradlew verifyCodegenVersionBump

0 commit comments

Comments
 (0)