Skip to content

Commit

Permalink
adjust workflow to only run on either "push to master" or PR
Browse files Browse the repository at this point in the history
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 <peter.gafert@tngtech.com>
  • Loading branch information
codecholeric committed May 23, 2020
1 parent 8f882df commit 0c3eb53
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CI

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:

jobs:
build:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: "Validate Gradle Wrapper"
on: [push, pull_request]

on:
push:
branches:
- master
pull_request:

jobs:
validation:
Expand Down

0 comments on commit 0c3eb53

Please sign in to comment.