Only trigger CI builds on labelled PRs

We only want to run CI builds once they've been assigned the `ci` label. This allows more direct control over when PRs are built.
This commit is contained in:
PixelyIon 2022-10-23 20:20:07 +05:30
parent a0539a3edb
commit 48d2b3bf07

View File

@ -4,6 +4,7 @@ on: [ push, pull_request ]
jobs:
build:
if: github.event.type != 'PullRequestEvent' || contains(github.event.pull_request.labels.*.name, 'ci')
runs-on: ubuntu-latest
env:
JVM_OPTS: -Xmx6G