Skip to content

Commit e0d2b54

Browse files
author
Github Actions
committed
Fix quoting in IS_TAGGED assignment in Get-BuildConfiguration function to ensure proper evaluation of GitSha. This change enhances the reliability of the build configuration logic.
1 parent 8e4c0d5 commit e0d2b54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/PSBuild.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function Get-BuildConfiguration {
110110

111111
# Determine if this is main branch and not tagged
112112
$IS_MAIN = $GitRef -eq "refs/heads/main"
113-
$IS_TAGGED = "(git show-ref --tags -d | Out-String).Contains($GitSha)" | Invoke-ExpressionWithLogging -Tags "Get-BuildConfiguration"
113+
$IS_TAGGED = "(git show-ref --tags -d | Out-String).Contains(`"$GitSha`")" | Invoke-ExpressionWithLogging -Tags "Get-BuildConfiguration"
114114
$SHOULD_RELEASE = ($IS_MAIN -AND -NOT $IS_TAGGED -AND $IS_OFFICIAL)
115115

116116
# Check for .csx files (dotnet-script)

0 commit comments

Comments
 (0)