]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
workflows/labeler: do not set labels on stable backport PRs 33629/head
authorMike Yuan <me@yhndnzj.com>
Thu, 4 Jul 2024 18:55:53 +0000 (20:55 +0200)
committerMike Yuan <me@yhndnzj.com>
Thu, 4 Jul 2024 18:55:53 +0000 (20:55 +0200)
.github/workflows/labeler.yml

index c2d8abd574292237186ae65f6d2216fd3d7ae728..2058d22380bf3a812493b1556e1825597f6df908 100644 (file)
@@ -35,7 +35,7 @@ jobs:
 
     - name: Label PR based on policy in labeler.yml
       uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9
-      if: startsWith(github.event_name, 'pull_request') && github.event.action != 'closed'
+      if: startsWith(github.event_name, 'pull_request') && github.base_ref == 'main' && github.event.action != 'closed'
       with:
         repo-token: "${{ secrets.GITHUB_TOKEN }}"
         configuration-path: .github/labeler.yml