mirror of
https://github.com/appleboy/ssh-action.git
synced 2025-04-07 19:21:59 +00:00
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:
parent
f439c3d1f1
commit
903686e51b
1 changed files with 7 additions and 0 deletions
7
.github/workflows/main.yml
vendored
7
.github/workflows/main.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue