From 2242d10fa0ce503ce03a2a99edc21c71925b34bf Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Tue, 13 Feb 2024 11:57:02 -0600 Subject: [PATCH] github-ci: fix authors check with special characters 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. --- .github/workflows/authors.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/authors.yml b/.github/workflows/authors.yml index e4b0c563c7..242cadd181 100644 --- a/.github/workflows/authors.yml +++ b/.github/workflows/authors.yml @@ -29,7 +29,7 @@ jobs: 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 -- 2.47.2