Fix SIGPIPE in CI webhook step by using bash string slicing
All checks were successful
CI/CD Pipeline - Apartment API / Scan Dependencies (pull_request) Successful in 13s
CI/CD Pipeline - Apartment API / Run Linting (pull_request) Successful in 9m35s
CI/CD Pipeline - Apartment API / Run Tests (pull_request) Successful in 9m58s
CI/CD Pipeline - Apartment API / Send Webhook Notification (pull_request) Successful in 3s
CI/CD Pipeline - Apartment API / Build & Push Image (pull_request) Has been skipped
CI/CD Pipeline - Apartment API / Deploy to Production (pull_request) Has been skipped
All checks were successful
CI/CD Pipeline - Apartment API / Scan Dependencies (pull_request) Successful in 13s
CI/CD Pipeline - Apartment API / Run Linting (pull_request) Successful in 9m35s
CI/CD Pipeline - Apartment API / Run Tests (pull_request) Successful in 9m58s
CI/CD Pipeline - Apartment API / Send Webhook Notification (pull_request) Successful in 3s
CI/CD Pipeline - Apartment API / Build & Push Image (pull_request) Has been skipped
CI/CD Pipeline - Apartment API / Deploy to Production (pull_request) Has been skipped
Replace echo | head -c pipe with ${VAR:0:10000} bash substring
to avoid exit code 141 when output exceeds truncation limit.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
4
.github/workflows/deploy.yml
vendored
4
.github/workflows/deploy.yml
vendored
@ -133,8 +133,8 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Truncate outputs if too long (max 10000 chars each)
|
# Truncate outputs if too long (max 10000 chars each)
|
||||||
LINT_OUTPUT=$(echo "$RAW_LINT_OUTPUT" | head -c 10000)
|
LINT_OUTPUT="${RAW_LINT_OUTPUT:0:10000}"
|
||||||
TEST_OUTPUT=$(echo "$RAW_TEST_OUTPUT" | head -c 10000)
|
TEST_OUTPUT="${RAW_TEST_OUTPUT:0:10000}"
|
||||||
|
|
||||||
# Build JSON payload
|
# Build JSON payload
|
||||||
PAYLOAD=$(jq -n \
|
PAYLOAD=$(jq -n \
|
||||||
|
|||||||
Reference in New Issue
Block a user