From 8ee5c68846c729e242f3a91ad5ac051637a636af Mon Sep 17 00:00:00 2001 From: Jake Wharton Date: Thu, 25 Jan 2024 11:09:35 -0500 Subject: [PATCH] Don't build branches unless manually dispatched Except trunk, our new master. --- .github/workflows/build.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5c40859d77..f26997c664 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,13 @@ name: build -on: [push, pull_request] +on: + pull_request: {} + workflow_dispatch: {} + push: + branches: + - 'trunk' + tags-ignore: + - '**' env: GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false" @@ -10,7 +17,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 with: distribution: 'zulu' @@ -42,7 +48,6 @@ jobs: ls /dev/kvm - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 with: distribution: 'zulu' @@ -63,7 +68,6 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 with: distribution: 'zulu' @@ -84,7 +88,6 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 with: distribution: 'zulu'