From f13077fc5ffc234bc24ae7889983b88411ba1977 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Tue, 17 Dec 2024 13:45:11 +0100 Subject: [PATCH] Update regex from #68049 --- .github/workflows/check-backport-changelog.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-backport-changelog.yml b/.github/workflows/check-backport-changelog.yml index 2a89e2435a6347..983b5b3021f6f0 100644 --- a/.github/workflows/check-backport-changelog.yml +++ b/.github/workflows/check-backport-changelog.yml @@ -34,7 +34,7 @@ jobs: # Find any changelog file that contains the Gutenberg PR link gutenberg_pr_url="https://github\.com/WordPress/gutenberg/pull/${PR_NUMBER}" - changelog_file=$(grep -Erl "^[-*] +${gutenberg_pr_url}$" "${changelog_folder}" | head -n 1) + changelog_file=$(grep -Erl "[-*] +${gutenberg_pr_url}$" "${changelog_folder}" | head -n 1) # Confirm that there is an entry containing the Gutenberg PR link if [[ -z "${changelog_file}" ]]; then