fix(ci): replace grep -oP with portable grep -oE for BusyBox

This commit is contained in:
Jarian Cottingham 2026-07-08 00:13:48 +00:00 committed by Jarian
parent cc6c9c6957
commit 0657b654b6

View File

@ -118,7 +118,7 @@ jobs:
# NewsArchiverV2 uses offset 1, so port = 10001 # NewsArchiverV2 uses offset 1, so port = 10001
CI_LOG=$(docker logs newsarchiver-e2e 2>&1 | grep "\[ci-port-shift\]" || echo "") CI_LOG=$(docker logs newsarchiver-e2e 2>&1 | grep "\[ci-port-shift\]" || echo "")
if [ -n "$CI_LOG" ]; then 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 "app_port=${APP_PORT}" >> $GITHUB_OUTPUT
echo "$CI_LOG" echo "$CI_LOG"
else else