Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: using matrix in update staging service action (#3599)
h3n4l0888140ef22e
diff --git a/.github/workflows/update-render-staging-service.yml b/.github/workflows/update-render-staging-service.ymlindex 94913720f9..f1ce22326c 100644--- a/.github/workflows/update-render-staging-service.yml+++ b/.github/workflows/update-render-staging-service.yml@@ -10,35 +10,20 @@ on:jobs:update-render:runs-on: ubuntu-latest+ strategy:+ matrix:+ # The first service_id using PG 15 and the second using PG 14+ service_id: ["srv-c760lk4objdcv67lc6ug", "srv-ce02beha6gdsa605m5eg"]steps:- uses: actions/checkout@v3- name: Extract versionrun: |echo "RELEASE_VERSION=${GITHUB_REF_NAME#release/}" >> $GITHUB_ENV- - name: Update staging.bytebase.com using PG 15+ - name: Update staging.bytebase.comrun: |RENDER_RESPONSE=$(curl --request PATCH \-w "%{http_code}" \- --url https://api.render.com/v1/services/srv-c760lk4objdcv67lc6ug \- --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- - 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 \+ --url https://api.render.com/v1/services/${{ matrix.service_id }} \--header 'Accept: application/json' \--header 'Authorization: Bearer ${{ secrets.RENDER_API_KEY }}' \--header 'Content-Type: application/json' \