Skip to content

Commit a9aaa10

Browse files
Update {{cookiecutter.project_name|replace(" ", "")}}/.github/workflows/ci.yml
Co-authored-by: ai-coding-guardrails[bot] <206064491+ai-coding-guardrails[bot]@users.noreply.github.com>
1 parent 9b64f1f commit a9aaa10

File tree

1 file changed

+3
-3
lines changed
  • {{cookiecutter.project_name|replace(" ", "")}}/.github/workflows

1 file changed

+3
-3
lines changed

{{cookiecutter.project_name|replace(" ", "")}}/.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ jobs:
130130
# Keep this aligned with the above needs
131131
- name: Check for failed jobs
132132
run: |
133-
if [[ "{% raw %}${{ needs.lint.result }}{% endraw %}" == "failure" ||
134-
"{% raw %}${{ needs.test.result }}{% endraw %}" == "failure" ||
135-
"{% raw %}${{ needs.build.result }}{% endraw %}" == "failure" ]]; then
133+
# Use contains() to check for any failure or cancellation
134+
if [[ "{% raw %}${{ contains(needs.*.result, 'failure') }}{% endraw %}" == "true" ||
135+
"{% raw %}${{ contains(needs.*.result, 'cancelled') }}{% endraw %}" == "true" ]]; then
136136
echo "One or more required jobs failed. Marking finalizer as failed."
137137
exit 1
138138
fi

0 commit comments

Comments
 (0)