Skip to content

Commit

Permalink
Merge pull request #4057 from square/jw.dont-build-branches.2024-01-25
Browse files Browse the repository at this point in the history
Don't build branches unless manually dispatched
  • Loading branch information
JakeWharton authored Jan 25, 2024
2 parents 7754ca4 + 8ee5c68 commit fccbe4b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -10,7 +17,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: 'zulu'
Expand Down Expand Up @@ -42,7 +48,6 @@ jobs:
ls /dev/kvm
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: 'zulu'
Expand All @@ -63,7 +68,6 @@ jobs:

steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: 'zulu'
Expand All @@ -84,7 +88,6 @@ jobs:

steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: 'zulu'
Expand Down

0 comments on commit fccbe4b

Please sign in to comment.