examples/docker-compose: fix false positive

because of the -x the success string was always in the output and the
workflow .forgejo/workflows/example-docker-compose.yml would always
report success, even if it fails
This commit is contained in:
Earl Warren 2023-10-06 16:19:55 +02:00
parent bf11dac848
commit 9cb0716425
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
3 changed files with 10 additions and 8 deletions

View file

@ -42,11 +42,13 @@ jobs:
#
$cli ps --help
success='DEMO WORKFLOW SUCCESS'
failure='DEMO WORKFLOW FAILURE'
for delay in $(seq 60) ; do
$cli logs -n 10 demo-workflow > /tmp/out
grep --quiet "$success" /tmp/out && break
grep --quiet "$failure" /tmp/out && break
$cli ps --all
cat /tmp/out
tail /tmp/out
sleep 10
done
if ! grep --quiet "$success" /tmp/out ; then