Skip to content

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

chore: add step to update staging14.bytebase.com using pg 14 (#3522)

Tianzhou (天舟)daa4b8b2d637
diff --git a/.github/workflows/update-render-staging-service.yml b/.github/workflows/update-render-staging-service.yml
index dac3cebbcd..94913720f9 100644
--- a/.github/workflows/update-render-staging-service.yml
+++ b/.github/workflows/update-render-staging-service.yml
@@ -15,7 +15,7 @@ jobs:
- name: Extract version
run: |
echo "RELEASE_VERSION=${GITHUB_REF_NAME#release/}" >> $GITHUB_ENV
- - name: Update render web service
+ - name: Update staging.bytebase.com using PG 15
run: |
RENDER_RESPONSE=$(curl --request PATCH \
-w "%{http_code}" \
@@ -34,3 +34,22 @@ jobs:
if [[ "$(echo ${RENDER_RESPONSE} | tail -c 4)" != "200" ]]; then
exit 1
fi
+ - name: Update staging14.bytebase.com using PG 14
+ run: |
+ RENDER_RESPONSE=$(curl --request PATCH \
+ -w "%{http_code}" \
+ --url https://api.render.com/v1/services/srv-ce02beha6gdsa605m5eg \
+ --header 'Accept: application/json' \
+ --header 'Authorization: Bearer ${{ secrets.RENDER_API_KEY }}' \
+ --header 'Content-Type: application/json' \
+ --data '
+ {
+ "autoDeploy": "yes",
+ "branch": "release/${{ env.RELEASE_VERSION }}"
+ }
+ '
+ )
+ echo ${RENDER_RESPONSE}
+ if [[ "$(echo ${RENDER_RESPONSE} | tail -c 4)" != "200" ]]; then
+ exit 1
+ fi