Skip to content

Commit

Permalink
Use READ_PACKAGES secret in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
AfzalivE committed Oct 5, 2023
1 parent acde253 commit dfd89bd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions settings.gradle
Expand Up @@ -7,8 +7,14 @@ pluginManagement {
}
dependencyResolutionManagement {
def githubProperties = new Properties()
file("github.properties").withInputStream {
stream -> githubProperties.load(stream)
def propertiesFile = file("github.properties")
if (propertiesFile.exists()) {
propertiesFile.withInputStream {
stream -> githubProperties.load(stream)
}
} else {
githubProperties.put("gh_user", System.getenv("READ_PACKAGES_USER"))
githubProperties.put("gh_token", System.getenv("READ_PACKAGES_TOKEN"))
}

repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
Expand Down

0 comments on commit dfd89bd

Please sign in to comment.