Skip to content

Commit be256cd

Browse files
authored
smarter component updates (knative#3290)
1 parent e42a5f8 commit be256cd

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

hack/update-deps.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,14 @@ source "$(go run knative.dev/hack/cmd/script library.sh)"
2222

2323
go_update_deps "$@"
2424

25-
# Update hack components
26-
make hack-generate-components
25+
echo ">> args='$@'"
26+
# This is a guard for running only when its running via bot to update deps and
27+
# potentially create a PR.
28+
# When this is running in 'verify deps' workflow it runs with no arguments.
29+
# We dont want these changes to break the GH Action for all PRs therefore we
30+
# limit this only for dependency bumps.
31+
if [[ $# -gt 0 ]]; then
32+
echo ">> Running make hack-generate-components"
33+
# Update hack components
34+
make hack-generate-components
35+
fi

0 commit comments

Comments
 (0)