Skip to content

Commit 67330aa

Browse files
geraldbarre-workleapGérald BarréCopilot
authored
fix: convert CI_FAIL_IF_NO_POLICY to boolean for proper evaluation (#161)
* fix: convert CI_FAIL_IF_NO_POLICY to boolean for proper evaluation * Update .github/workflows/required_checks_policy.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Gérald Barré <gerald.barre@gsoft.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 6ef14d5 commit 67330aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/required_checks_policy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
}
148148
149149
if ($requiredChecks.Count -eq 0) {
150-
if ($env:CI_FAIL_IF_NO_POLICY) {
150+
if ($env:CI_FAIL_IF_NO_POLICY -eq 'true') {
151151
Write-Error "❌ No required checks found for the changed paths, but CI_FAIL_IF_NO_POLICY is set."
152152
exit 1
153153
}

0 commit comments

Comments
 (0)