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>pull/355/head
parent
f439c3d1f1
commit
903686e51b
|
|
@ -644,3 +644,10 @@ jobs:
|
||||||
- name: check stdout
|
- name: check stdout
|
||||||
run: |
|
run: |
|
||||||
echo "stdout: ${{ steps.stdout.outputs.stdout }}"
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue