Skip to content

Commit

Permalink
ci: improve GitHub Actions workflow with conditional checks
Browse files Browse the repository at this point in the history
- Add conditional checks in GitHub Actions workflow to handle 'True' and 'False' outputs

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Dec 5, 2024
1 parent f439c3d commit 903686e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 903686e

Please sign in to comment.