Dependabot is always getting flagged as a new author even tho it uses
a consistent author of:
dependabot[bot] <
49699333+dependabot[bot]@users.noreply.github.com>
But this doesn't work with plain grep. Fix by telling grep to treat
the value as a fixed string instead of a regular expression.
touch new-authors.txt
while read -r author; do
echo "Checking author: ${author}"
- if ! grep -q "^${author}\$" authors.txt; then
+ if ! grep -qFx "${author}" authors.txt; then
echo "ERROR: ${author} NOT FOUND"
echo "::warning ::New author found: ${author}"
echo "${author}" >> new-authors.txt