File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,17 +130,16 @@ jobs:
130130 // granted to it by virtue of its status as an Intergovernmental Organization
131131 // or submit itself to any jurisdiction.
132132 run : |
133- set -exo pipefail
134133 # Run copyright notice check
135134 copyright_lines=$(echo "$COPYRIGHT" | wc -l)
136135 base_commit=$(git merge-base HEAD ${{ github.event.pull_request.base.sha }})
137136 have_err=
138- git diff --diff-filter d --name-only "$base_commit" -- '*.cxx' '*.h' | while read -r file; do
137+ while read -r file; do
139138 if [ "$(head -n "$copyright_lines" "$file")" != "$COPYRIGHT" ]; then
140139 echo "::error::$file: missing or malformed copyright notice" >&2
141140 have_err=1
142141 fi
143- done
142+ done < <(git diff --diff-filter d --name-only "$base_commit" -- '*.cxx' '*.h')
144143
145144 # Tell user what to do in case of copyright notice error
146145 if [ -n "$have_err" ]; then
You can’t perform that action at this time.
0 commit comments