Skip to content

Commit d345244

Browse files
authored
Merge pull request #2 from ByteGuard-HQ/feature/release-v1.0.0
Fix incorrect main branch filter in action yml
2 parents a98622e + 984fd3d commit d345244

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ try {
2121

2222
$branch = @{ $true = $env:CI_TARGET_BRANCH; $false = $(git symbolic-ref --short -q HEAD) }[$NULL -ne $env:CI_TARGET_BRANCH];
2323
$revision = @{ $true = "{0:00000}" -f [convert]::ToInt32("0" + $env:CI_BUILD_NUMBER, 10); $false = "local" }[$NULL -ne $env:CI_BUILD_NUMBER];
24-
$suffix = @{ $true = ""; $false = "$($branch.Substring(0, [math]::Min(10,$branch.Length)) -replace '([^a-zA-Z0-9\-]*)', '')-$revision"}[$branch -eq "main" -and $revision -ne "local"]
24+
$suffix = @{ $true = ""; $false = "$($branch.Substring(0, [math]::Min(10,$branch.Length)) -replace '([^a-zA-Z0-9\-]*)', '')-$revision"}[$branch -eq "master" -and $revision -ne "local"]
2525
$commitHash = $(git rev-parse --short HEAD)
2626
$buildSuffix = @{ $true = "$($suffix)-$($commitHash)"; $false = "$($branch)-$($commitHash)" }[$suffix -ne ""]
2727

@@ -59,7 +59,7 @@ try {
5959

6060
if ($env:NUGET_API_KEY) {
6161
# GitHub Actions will only supply this to branch builds and not PRs. We publish
62-
# builds from any branch this action targets (i.e. main and dev).
62+
# builds from any branch this action targets (i.e. master and dev).
6363

6464
Write-Output "build: Publishing NuGet package"
6565

0 commit comments

Comments
 (0)