Skip to content

Commit

Permalink
Make update-script.rb generic.
Browse files Browse the repository at this point in the history
  • Loading branch information
simi committed Dec 6, 2021
1 parent dbbbf32 commit e87f5e0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions update-script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
"type" => "git_source",
"host" => "github.com",
"username" => "x-access-token",
"password" => "a-github-access-token"
"password" => ENV["GITHUB_ACCESS_TOKEN"] # A GitHub access token with read access to public repos
}]

# Full name of the GitHub repo you want to create pull requests for.
repo_name = "github-account/github-repo"
# Full name of the repo you want to create pull requests for.
repo_name = ENV["PROJECT_PATH"] # namespace/project

# Directory where the base dependency files are.
directory = "/"
directory = ENV["DIRECTORY_PATH"] || "/"

# Name of the dependency you'd like to update. (Alternatively, you could easily
# modify this script to loop through all the dependencies returned by
# `parser.parse`.)
dependency_name = "rails"
dependency_name = ENV["DEPENDENCY_NAME"] || "rails"

# Name of the package manager you'd like to do the update for. Options are:
# - bundler
Expand All @@ -49,7 +49,7 @@
# - submodules
# - docker
# - terraform
package_manager = "npm_and_yarn"
package_manager = ENV["PACKAGE_MANAGER"] || "bundler"

source = Dependabot::Source.new(
provider: "github",
Expand Down

0 comments on commit e87f5e0

Please sign in to comment.