File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ if (-not $isPullRequest) {
72
72
' A release should not be created in this context. Exiting.'
73
73
return
74
74
}
75
+
75
76
Write-Output ' -------------------------------------------------'
76
77
Write-Output " Is a pull request event: [$isPullRequest ]"
77
78
Write-Output " Action type: [$ ( $githubEvent.action ) ]"
@@ -96,8 +97,8 @@ $majorTags = @('major', 'breaking')
96
97
$minorTags = @ (' minor' , ' feature' , ' improvement' )
97
98
$patchTags = @ (' patch' , ' fix' , ' bug' )
98
99
99
- $createRelease = $pull_request.base.ref -eq ' main' -and $pull_request.merged -eq ' True'
100
- $closedPullRequest = $pull_request.state -eq ' closed' -and $pull_request.merged -eq ' False'
100
+ $createRelease = $pull_request.base.ref -eq ' main' -and ( $pull_request.merged ).ToString() -eq ' True'
101
+ $closedPullRequest = $pull_request.state -eq ' closed' -and ( $pull_request.merged ).ToString() -eq ' False'
101
102
$preRelease = $labels -Contains ' prerelease'
102
103
$createPrerelease = $preRelease -and -not $createRelease
103
104
You can’t perform that action at this time.
0 commit comments