diff --git a/pipelines/shared-tasks/create-or-update-pr/task.sh b/pipelines/shared-tasks/create-or-update-pr/task.sh index 4364043c2..e0ec38059 100755 --- a/pipelines/shared-tasks/create-or-update-pr/task.sh +++ b/pipelines/shared-tasks/create-or-update-pr/task.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# Copyright 2020-2025 the Pinniped contributors. All Rights Reserved. +# Copyright 2020-2026 the Pinniped contributors. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 set -euo pipefail @@ -26,6 +26,16 @@ git add . # Print the current status to the log. git status +# Update copyrights on the staged files, if needed. +echo "Updating copyrights as needed ..." +./hack/update-copyright-year.sh + +# Add all the changed files again, in case copyrights were updated. +git add . + +# Print the current status to the log. +git status + # Did we just stage any changes? staged=$(git --no-pager diff --staged) if [[ "$staged" == "" ]]; then