diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 1f1ab61..def3084 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -118,7 +118,7 @@ jobs: # NewsArchiverV2 uses offset 1, so port = 10001 CI_LOG=$(docker logs newsarchiver-e2e 2>&1 | grep "\[ci-port-shift\]" || echo "") if [ -n "$CI_LOG" ]; then - APP_PORT=$(echo "$CI_LOG" | grep -oP 'to \K[0-9]+') + APP_PORT=$(echo "$CI_LOG" | grep -oE 'to [0-9]+' | grep -oE '[0-9]+$') echo "app_port=${APP_PORT}" >> $GITHUB_OUTPUT echo "$CI_LOG" else