From d18a8ffe6ad80e8ba70e8cbb20d225f6fff20240 Mon Sep 17 00:00:00 2001 From: Rishabh Singh Date: Tue, 13 Aug 2024 15:05:20 -0700 Subject: [PATCH] Fix logic for getting maintainer ids for benchmark workflow Signed-off-by: Rishabh Singh --- .github/workflows/benchmark-pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/benchmark-pull-request.yml b/.github/workflows/benchmark-pull-request.yml index 59b3e3900823e..d22605b6b182c 100644 --- a/.github/workflows/benchmark-pull-request.yml +++ b/.github/workflows/benchmark-pull-request.yml @@ -109,7 +109,7 @@ jobs: echo "prHeadRefSha=$headRefSha" >> $GITHUB_ENV - id: get_approvers run: | - echo "approvers=$(cat .github/CODEOWNERS | grep '^\*' | tr -d '* ' | sed 's/@/,/g' | sed 's/,//1')" >> $GITHUB_OUTPUT + echo "approvers=$(cat .github/CODEOWNERS | grep '^/MAINTAINERS.md' | sed 's/^\/MAINTAINERS.md @//g' | tr -d '@' | tr ' ' ',' | tr -d '\n')" >> $GITHUB_OUTPUT - uses: trstringer/manual-approval@v1 if: (!contains(steps.get_approvers.outputs.approvers, github.event.comment.user.login)) with: