Skip to content

Commit 9408ea9

Browse files
committed
ci: Fix authorship overrided during check
Co-authored-by: orthagh <delaunay.alexandre@gmail.com>
1 parent 1cbbf12 commit 9408ea9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/commit-authorship.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ jobs:
6060
break 2
6161
fi
6262
if [ "$MESS" -ne 0 ]; then
63-
while IFS=$'\t' read name email; do
64-
[ "$MESSLOOP" -eq 0 ] && echo "${sha:0:12} - $name <$email>"
65-
if echo "$name" | grep -iqE "$pattern" || echo "$email" | grep -iqE "$pattern"; then
66-
echo "::error title=AI-authored commit::${sha:0:12} — '$name <$email>' matches '$pattern'"
63+
while IFS=$'\t' read co_name co_email; do
64+
[ "$MESSLOOP" -eq 0 ] && echo "${sha:0:12} - $co_name <$co_email>"
65+
if echo "$co_name" | grep -iqE "$pattern" || echo "$co_email" | grep -iqE "$pattern"; then
66+
echo "::error title=AI-authored commit::${sha:0:12} — '$co_name <$co_email>' matches '$pattern'"
6767
FAIL=1
6868
break 3
6969
fi

0 commit comments

Comments
 (0)