Skip to content

Commit 4ac6f2a

Browse files
fix: extract URL from mobbdev CLI output to fix github-status-action
The mobbdev CLI now prefixes its output with status messages like "🔌 [WebSocket Mode] Using WebSocket subscription..." before the URL. This caused github-status-action to receive an invalid target_url, failing with "Validation Failed". Extract just the https:// URL from the output using grep, matching the approach already used in codeql-mobb-fixer-action. Ref: E-1815
1 parent 60eddfe commit 4ac6f2a

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,9 @@ runs:
9090
exit $RETVAL
9191
fi
9292
OUT=$(echo "$OUT" | tr '\n' ' ')
93-
echo "fix-report-url=$OUT" >> "$GITHUB_OUTPUT"
94-
echo "Mobb URL: $OUT"
93+
MOBB_URL=$(echo "$OUT" | grep -oE 'https://[^ ]+' | head -1)
94+
echo "fix-report-url=$MOBB_URL" >> "$GITHUB_OUTPUT"
95+
echo "Mobb URL: $MOBB_URL"
9596
9697
shell: bash
9798
env:

review/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,10 @@ runs:
7777
7878
OUT=$("${MOBB_ARGS[@]}" || true)
7979
OUT=$(echo "$OUT" | tr '\n' ' ')
80+
MOBB_URL=$(echo "$OUT" | grep -oE 'https://[^ ]+' | head -1)
8081
81-
echo "fix-report-url=$OUT" >> "$GITHUB_OUTPUT"
82-
echo "Mobb URL: $OUT"
82+
echo "fix-report-url=$MOBB_URL" >> "$GITHUB_OUTPUT"
83+
echo "Mobb URL: $MOBB_URL"
8384
8485
shell: bash
8586
env:

0 commit comments

Comments
 (0)