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
## PowerShell script used to download and extract the latest release zip file of a private project from the GitHub API ## | |
# Parameters | |
$orga = "[YOUR_ORGANIZATION]" | |
$repo = "[YOUR_PROJECT]" | |
$apiUrl = "https://api.github.com/repos/$orga/$repo/releases/latest" | |
$token = "[YOUR_TOKEN]" | |
$folder = "C:\[YOUR_PATH]" | |
$date = Get-Date -format "yyyy-MM-dd" | |
$zip = "$folder\$repo-$date.zip" |