Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions hack/verify-apidiff
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,14 @@ apidiffs=$(go run github.com/joelanford/[email protected] ${APIDIFF_OLD_COMMIT}
filtered=$(echo "$apidiffs" | grep -E 'cluster-api-provider-gcp/(api/|exp/api/)' || true)

if [[ -n "$filtered" ]]; then
echo "API differences found in api/ or exp/api/:"
echo "API differences found in api/ or exp/api/ packages."
echo ""
echo "Full set of differences found by go-apidiff:"
echo "$apidiffs"
exit 1
else
echo "No differences found in api/ or exp/api/ packages"
echo "No differences found in api/ or exp/api/ packages."
echo ""
echo "Full set of differences found by go-apidiff:"
echo "$apidiffs"
fi
2 changes: 1 addition & 1 deletion scripts/ci-apidiff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/..

cd "${REPO_ROOT}"

APIDIFF_OLD_COMMIT="${PULL_BASE_SHA}" make apidiff
APIDIFF_OLD_COMMIT="${PULL_BASE_SHA}" exec make apidiff