diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index c1c2505a62245..06cae929e48fd 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -7,6 +7,7 @@ on: jobs: backport: + if: ${{ contains(github.event.label.name, 'backport ') && (github.event.pull_request.merged == true) }} runs-on: ubuntu-latest permissions: contents: write