Skip to content

Commit 3beb434

Browse files
YHNdnzjbluca
authored andcommitted
workflows/labeler: do not set labels on stable backport PRs
(cherry picked from commit 5dfc88c)
1 parent e6ba111 commit 3beb434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
- name: Label PR based on policy in labeler.yml
3737
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9
38-
if: startsWith(github.event_name, 'pull_request') && github.event.action != 'closed'
38+
if: startsWith(github.event_name, 'pull_request') && github.base_ref == 'main' && github.event.action != 'closed'
3939
with:
4040
repo-token: "${{ secrets.GITHUB_TOKEN }}"
4141
configuration-path: .github/labeler.yml

0 commit comments

Comments
 (0)