Skip to content

Commit 59909c9

Browse files
committed
fix: correct formatting of Copilot email list in commit author check
1 parent efe9cce commit 59909c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/reassign-copilot-commits.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,21 @@ jobs:
5353
env:
5454
GH_TOKEN: ${{ secrets.GH_PAT }}
5555
run: |
56-
COPILOT_EMAILS="github-actions[bot]@users.noreply.github.com\ncopilot[email protected]\ncopilot@github.com\n198982749[email protected]"
56+
COPILOT_EMAILS="github-actions[bot]@users.noreply.github.com copilot[email protected] copilot@github.com 198982749[email protected]"
5757
FOUND=0
5858
for COMMIT in $(cat commits.txt); do
5959
echo "Checking commit: $COMMIT"
6060
AUTHOR_EMAIL=$(git show -s --format='%ae' $COMMIT)
6161
echo "Author email: $AUTHOR_EMAIL"
62-
IFS=$'\n'
62+
6363
for EMAIL in $COPILOT_EMAILS; do
6464
echo "Checking against Copilot email: $EMAIL"
6565
if [ "$AUTHOR_EMAIL" = "$EMAIL" ]; then
6666
FOUND=1
6767
break
6868
fi
6969
done
70-
unset IFS
70+
7171
done
7272
echo "COPILOT_FOUND=$FOUND" >> $GITHUB_ENV
7373
echo "found=$FOUND" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)