Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: using tail -c instead of tail -n to compare the http status code (#1812)

h3n4l8d29d71b8af2
diff --git a/.github/workflows/update-render-staging-service.yml b/.github/workflows/update-render-staging-service.yml
index 9c736484b4..dac3cebbcd 100644
--- a/.github/workflows/update-render-staging-service.yml
+++ b/.github/workflows/update-render-staging-service.yml
@@ -18,7 +18,7 @@ jobs:
- name: Update render web service
run: |
RENDER_RESPONSE=$(curl --request PATCH \
- -w "\n%{http_code}" \
+ -w "%{http_code}" \
--url https://api.render.com/v1/services/srv-c760lk4objdcv67lc6ug \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ${{ secrets.RENDER_API_KEY }}' \
@@ -31,6 +31,6 @@ jobs:
'
)
echo ${RENDER_RESPONSE}
- if [[ "$(echo ${RENDER_RESPONSE} | tail -n 1)" != "200" ]]; then
+ if [[ "$(echo ${RENDER_RESPONSE} | tail -c 4)" != "200" ]]; then
exit 1
fi