Merge dev: Node.js scraper migration + CI fix #32
14
.github/workflows/deploy.yml
vendored
14
.github/workflows/deploy.yml
vendored
@ -44,8 +44,10 @@ jobs:
|
||||
set +e
|
||||
OUTPUT=$(npm run lint 2>&1)
|
||||
EXIT_CODE=$?
|
||||
# Truncate before writing to GITHUB_OUTPUT to prevent
|
||||
# "argument list too long" in downstream jobs
|
||||
echo "lint_output<<EOF" >> $GITHUB_OUTPUT
|
||||
echo "$OUTPUT" >> $GITHUB_OUTPUT
|
||||
echo "${OUTPUT:0:10000}" >> $GITHUB_OUTPUT
|
||||
echo "EOF" >> $GITHUB_OUTPUT
|
||||
exit $EXIT_CODE
|
||||
|
||||
@ -56,8 +58,10 @@ jobs:
|
||||
set +e
|
||||
OUTPUT=$(npm test -- --runInBand 2>&1)
|
||||
EXIT_CODE=$?
|
||||
# Truncate before writing to GITHUB_OUTPUT to prevent
|
||||
# "argument list too long" in downstream jobs
|
||||
echo "test_output<<EOF" >> $GITHUB_OUTPUT
|
||||
echo "$OUTPUT" >> $GITHUB_OUTPUT
|
||||
echo "${OUTPUT:0:10000}" >> $GITHUB_OUTPUT
|
||||
echo "EOF" >> $GITHUB_OUTPUT
|
||||
exit $EXIT_CODE
|
||||
env:
|
||||
@ -98,9 +102,9 @@ jobs:
|
||||
OVERALL_STATUS="failure"
|
||||
fi
|
||||
|
||||
# Truncate outputs if too long (max 10000 chars each)
|
||||
LINT_OUTPUT="${RAW_LINT_OUTPUT:0:10000}"
|
||||
TEST_OUTPUT="${RAW_TEST_OUTPUT:0:10000}"
|
||||
# Outputs are already truncated at the source (ci job)
|
||||
LINT_OUTPUT="$RAW_LINT_OUTPUT"
|
||||
TEST_OUTPUT="$RAW_TEST_OUTPUT"
|
||||
|
||||
# Build JSON payload
|
||||
PAYLOAD=$(jq -n \
|
||||
|
||||
Reference in New Issue
Block a user