mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Don't delete old master branch build artifacts
This commit is contained in:
@@ -20,8 +20,14 @@ $packages = @(
|
||||
'LOOT_API'
|
||||
'metadata-validator'
|
||||
)
|
||||
# The GitHub API's protected branches API is currently in preview, so hardcode
|
||||
# the branches for now.
|
||||
$protectedBranches = @(
|
||||
'dev'
|
||||
'master'
|
||||
)
|
||||
|
||||
if ($currentBranch -ne "dev") {
|
||||
if (!($protectedBranches.Contains($currentBranch))) {
|
||||
exit
|
||||
}
|
||||
|
||||
@@ -36,7 +42,7 @@ foreach($package in $packages) {
|
||||
foreach ($version in $versions) {
|
||||
if ($currentCommitId -eq (Get-HashFromBintrayVersion $version)) {
|
||||
$versionBranch = Get-BranchFromBintrayVersion $version
|
||||
if ($versionBranch -ne "dev") {
|
||||
if (!($protectedBranches.Contains($versionBranch))) {
|
||||
$matchingBranches += $versionBranch
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user