Skip to content

Commit 903686e

Browse files
committed
ci: improve GitHub Actions workflow with conditional checks
- Add conditional checks in GitHub Actions workflow to handle 'True' and 'False' outputs Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent f439c3d commit 903686e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,3 +644,10 @@ jobs:
644644
- name: check stdout
645645
run: |
646646
echo "stdout: ${{ steps.stdout.outputs.stdout }}"
647+
if echo "${{ steps.stdout.outputs.stdout }}" | grep -q "True"; then
648+
echo "Output contains 'True'"
649+
exit 1
650+
fi
651+
if echo "${{ steps.stdout.outputs.stdout }}" | grep -q "False"; then
652+
echo "Output contains 'False'"
653+
fi

0 commit comments

Comments
 (0)