[ci skip] Only build PRs on correct label (#11811)

This commit is contained in:
Bjarne Koll 2024-12-24 22:58:10 +01:00 committed by GitHub
parent 9e2d39cd26
commit 321d17cc8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,7 +17,7 @@ on:
jobs: jobs:
build: build:
# Run on all label events (won't be duplicated) or all push events or on PR syncs not from the same repo # Run on all label events (won't be duplicated) or all push events or on PR syncs not from the same repo
if: (github.event_name == 'pull_request' && github.event.action == 'labeled') || github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name if: (github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'build-pr-jar') || github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix: