Skip to content

Commit e230895

Browse files
committed
ensure determine-status can handle empty steps.build-*.outcome
1 parent 80d76bc commit e230895

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/conda-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ jobs:
172172
elif [[ "$OS" == "windows" ]]; then
173173
STATUS="${{ steps.build-windows.outcome }}"
174174
fi
175+
if [ -z "$STATUS" ]; then
176+
# cancelled jobs will have empty status
177+
STATUS="cancelled"
178+
fi
175179
echo "status=$STATUS" >> $GITHUB_OUTPUT
176180
177181
- name: Prepare conda build artifacts

0 commit comments

Comments
 (0)