Skip to content

Commit 115d043

Browse files
authored
chore: i hate workflows
1 parent c33b492 commit 115d043

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
# against bad commits.
55

66
name: build
7+
78
on:
89
pull_request:
9-
push:
10-
paths:
10+
paths: &build_paths
1111
- '.github/workflows/build.yml'
1212
- 'build.gradle'
1313
- 'gradle.properties'
@@ -17,6 +17,10 @@ on:
1717
- 'settings.gradle'
1818
- 'src/**'
1919

20+
push:
21+
branches: [main]
22+
paths: *build_paths
23+
2024
concurrency:
2125
group: "java-build-${{ github.ref }}"
2226
cancel-in-progress: true

0 commit comments

Comments
 (0)