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 <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2024-12-05 16:13:39 +08:00
parent f439c3d1f1
commit 903686e51b
No known key found for this signature in database

View file

@ -644,3 +644,10 @@ jobs:
- name: check stdout
run: |
echo "stdout: ${{ steps.stdout.outputs.stdout }}"
if echo "${{ steps.stdout.outputs.stdout }}" | grep -q "True"; then
echo "Output contains 'True'"
exit 1
fi
if echo "${{ steps.stdout.outputs.stdout }}" | grep -q "False"; then
echo "Output contains 'False'"
fi