From 80866f9f4e5f8ba2ec004de63b2ba7e7c7effb7e Mon Sep 17 00:00:00 2001 From: Anton Gilgur <4970083+agilgur5@users.noreply.github.com> Date: Sat, 6 Jul 2024 16:40:25 -0400 Subject: [PATCH] ci(retest): filter more comments to use GHA less (#13208) Signed-off-by: Anton Gilgur --- .github/workflows/retest.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/retest.yaml b/.github/workflows/retest.yaml index 43a6dab06341..47cb30ff68a1 100644 --- a/.github/workflows/retest.yaml +++ b/.github/workflows/retest.yaml @@ -1,14 +1,15 @@ name: Detect and Trigger Retest on: issue_comment: - types: [created, edited] + types: [created] permissions: contents: read jobs: retest: - if: github.event.comment.author_association == 'MEMBER' && github.event.comment.body == '/retest' + # PR comments where a Member types "/retest" exactly + if: github.event.issue.pull_request && github.event.comment.author_association == 'MEMBER' && github.event.comment.body == '/retest' permissions: actions: write # for re-running failed jobs: https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#re-run-a-job-from-a-workflow-run runs-on: ubuntu-latest