From 8540c075f4dd7f51a755ce84f4e08113000a31b9 Mon Sep 17 00:00:00 2001 From: DmitriyLewen Date: Thu, 6 Jun 2024 12:36:04 +0600 Subject: [PATCH] ci: limit to release branches --- .github/workflows/backport.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backport.yaml b/.github/workflows/backport.yaml index 204b21883db9..127b10012429 100644 --- a/.github/workflows/backport.yaml +++ b/.github/workflows/backport.yaml @@ -10,7 +10,8 @@ jobs: if: | github.event.issue.pull_request && github.event.issue.pull_request.merged_at != null && - contains(github.event.comment.body, '@aqua-bot backport') + startsWith(github.event.comment.body, '@aqua-bot backport release/') && + (github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'MEMBER') runs-on: ubuntu-latest steps: