actions: fix: wait for the action logs to show up

The Forgejo instance completed the echo test successfully, there must
be a log at some point. But since Forgejo is still running, it may not
had time to write the logs just yet. Retry instead of giving up
immediately.
This commit is contained in:
Earl Warren 2024-11-12 15:40:12 +01:00
parent 60e90f5bc0
commit c4b3c61325
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -5,7 +5,7 @@ set -e
source $FEATURE_DIR/../../lib/lib.sh source $FEATURE_DIR/../../lib/lib.sh
source $FEATURE_DIR/../../forgejo/fixtures.sh source $FEATURE_DIR/../../forgejo/fixtures.sh
if ! fixture_get_one_path local data/actions_log/root/example-echo | grep --quiet log.zst; then if ! retry bash -c "find $DIR/forgejo-work-path/data/actions_log/root/example-echo | grep --quiet log.zst"; then
( (
cd $DIR/forgejo-work-path cd $DIR/forgejo-work-path
find data find data