Skip to content

Commit

Permalink
Do not enable mavenLocal() when running on GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
violetagg committed Apr 27, 2021
1 parent d3ab3d5 commit 29735e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@ configure(rootProject) { project ->
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
maven { url 'https://repo.spring.io/milestone' }
if (version.endsWith('BUILD-SNAPSHOT')) {
if (System.getenv ()["bamboo_buildNumber"] == null) {
if (System.getenv ()["GITHUB_ACTION"] == null) {
mavenLocal()
} else {
println 'Bamboo CI detected, avoiding use of mavenLocal()'
println 'GitHub Action detected, avoiding use of mavenLocal()'
}
maven { url 'https://repo.spring.io/snapshot' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
Expand Down

0 comments on commit 29735e6

Please sign in to comment.