-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preliminary new updater setup (#794)
* Setup pulling of files from dependabot updater * Update ENV variables passed to the updater to match the official one
- Loading branch information
1 parent
ea2055c
commit 809587d
Showing
12 changed files
with
335 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Param( | ||
[string] $tag = "v0.230.0" | ||
) | ||
|
||
$hash = [ordered]@{ | ||
"updater/lib/dependabot/environment.rb" = "lib/dependabot/environment.rb" | ||
"updater/spec/dependabot/environment_spec.rb" = "spec/dependabot/environment_spec.rb" | ||
# "updater/spec/spec_helper.rb" = "spec/spec_helper.rb" | ||
} | ||
|
||
$baseUrl = "https://raw.githubusercontent.com/dependabot/dependabot-core" | ||
$destinationFolder = Join-Path -Path '.' -ChildPath 'updater' | ||
|
||
foreach ($h in $hash.GetEnumerator()) { | ||
$sourceUrl = "$baseUrl/$tag/$($h.Name)" | ||
$destinationPath = Join-Path -Path "$destinationFolder" -ChildPath "$($h.Value)" | ||
Write-Host "`Downloading $($h.Name) ..." | ||
[System.IO.Directory]::CreateDirectory("$(Split-Path -Path "$destinationPath")") | Out-Null | ||
Invoke-WebRequest -Uri $sourceUrl -OutFile $destinationPath | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.