Skip to content

Commit 0c3eb53

Browse files
committed
adjust workflow to only run on either "push to master" or PR
Otherwise for a PR from a branch of the archunit repo itself this will trigger duplicate builds, since both events trigger. Signed-off-by: Peter Gafert <[email protected]>
1 parent 8f882df commit 0c3eb53

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
48

59
jobs:
610
build:

.github/workflows/gradle-wrapper-validation.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: "Validate Gradle Wrapper"
2-
on: [push, pull_request]
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
38

49
jobs:
510
validation:

0 commit comments

Comments
 (0)