Skip to content

Apache Lucene open-source search software

Only run the labeller on the main branch. (#14721)

Dawid Weiss2f39476d4e4e
diff --git a/.github/workflows/label-pull-request.yml b/.github/workflows/label-pull-request.yml
index 14631a11ba5..458c946f971 100644
--- a/.github/workflows/label-pull-request.yml
+++ b/.github/workflows/label-pull-request.yml
@@ -13,10 +13,15 @@ on:
jobs:
labeler:
+ # only run on the main Lucene repository.
+ if: (github.repository == 'apache/lucene')
+
permissions:
contents: read
pull-requests: write
+
runs-on: ubuntu-latest
+
steps:
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
with: