Skip to content

Commit c0a29f3

Browse files
committed
Fix conditional logic
1 parent 593c8a6 commit c0a29f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ jobs:
5858
steps:
5959
- name: Status
6060
run: |
61-
if [[ ${{ contains(needs.*.result, 'cancelled') }} ]]; then
61+
if [[ "${{ contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
6262
echo "Workflow cancelled."
6363
exit 1
64-
elif [[ ${{ contains(needs.*.result, 'failure') }} ]]; then
64+
elif [[ "${{ contains(needs.*.result, 'failure') }}" == "true" ]]; then
6565
echo "One or more jobs failed."
6666
exit 1
6767
else

0 commit comments

Comments
 (0)