update update-majors.sh for use in CI

This commit is contained in:
Ryan Richard
2026-01-21 10:49:51 -08:00
parent a47c5bf5fe
commit 6577c523de

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Copyright 2024 the Pinniped contributors. All Rights Reserved.
# Copyright 2024-2026 the Pinniped contributors. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
set -euo pipefail
@@ -46,20 +46,7 @@ done
go mod tidy
if git diff --quiet; then
echo
echo "No changes."
else
echo
echo "Showing resulting diffs..."
git --no-pager diff
echo
echo "Running unit tests..."
./hack/module.sh units
fi
popd >/dev/null
echo
echo "Done!"
echo "Done updating majors! Check for git diffs to see results."