Skip to content

Commit 2e4e855

Browse files
committed
🏃 don't use apidiff on dirty commits
1 parent 6016987 commit 2e4e855

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

hack/apidiff.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ cd "${REPO_ROOT}"
2626
APIDIFF="hack/tools/bin/go-apidiff"
2727

2828
header_text "fetching tools"
29+
2930
make "${APIDIFF}"
31+
mv "./hack/tools/bin/go-apidiff" ../go-apidiff
32+
33+
git reset --hard
34+
git clean -xdf
3035

3136
header_text "verifying api diff"
32-
"${APIDIFF}" "${PULL_BASE_SHA}" --print-compatible
37+
header_test "invoking: '../go-apidiff ${PULL_BASE_SHA} --print-compatible'"
38+
"../go-apidiff" "${PULL_BASE_SHA}" --print-compatible

0 commit comments

Comments
 (0)