Skip to content

Commit

Permalink
#106 do not use the CI info to override environment variables (#134)
Browse files Browse the repository at this point in the history
Signed-off-by: Klaus Lehner <[email protected]>
  • Loading branch information
klu2 authored Dec 12, 2022
1 parent 37120ec commit eab8be1
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
package io.cloudflight.gradle.autoconfigure.util

import io.cloudflight.ci.info.CI

object EnvironmentUtils {
fun isDefaultBuild(): Boolean {
return getBoolean(ENV_DEFAULT_BUILD) || (CI.isCI && CI.isPR != false)
return getBoolean(ENV_DEFAULT_BUILD)
}

fun isVerifyBuild(): Boolean {
return getBoolean(ENV_VERIFY_BUILD) || CI.isPR == true
return getBoolean(ENV_VERIFY_BUILD)
}

fun isPublishBuild(): Boolean {
Expand Down

0 comments on commit eab8be1

Please sign in to comment.