From fa31977dc775f30d886d323fa2e904c7e18f9519 Mon Sep 17 00:00:00 2001 From: p0ny Date: Wed, 3 Jun 2026 11:56:14 +0800 Subject: [PATCH 1/2] test --- .github/workflows/sql-review-action.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/sql-review-action.yml b/.github/workflows/sql-review-action.yml index d377bab..cf7cf1e 100644 --- a/.github/workflows/sql-review-action.yml +++ b/.github/workflows/sql-review-action.yml @@ -4,13 +4,11 @@ on: pull_request: branches: - main - paths: - - "migrations-semver/*.sql" jobs: check-release-on-prod: permissions: - pull-requests: write # write permission required to allow the action writes the check results to the comment. + pull-requests: write # write permission required to allow the action writes the check results to the comment. runs-on: ubuntu-latest # use self-hosted machines if your Bytebase runs in internal networks. container: image: docker://bytebase/bytebase-action:latest @@ -19,12 +17,12 @@ jobs: uses: actions/checkout@v4 - name: Check release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # set GITHUB_TOKEN because the 'Check release' step needs it to comment the pull request with check results. - BYTEBASE_URL: https://demo.bytebase.com - BYTEBASE_SERVICE_ACCOUNT: api@service.bytebase.com # set service account via environment variable - BYTEBASE_SERVICE_ACCOUNT_SECRET: ${{ secrets.BYTEBASE_SERVICE_ACCOUNT_SECRET }} # set service account secret via environment variable - BYTEBASE_PROJECT: "projects/hr" - BYTEBASE_TARGETS: "instances/prod-sample-instance/databases/hr_prod" - FILE_PATTERN: "migrations-semver/*.sql" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # set GITHUB_TOKEN because the 'Check release' step needs it to comment the pull request with check results. + BYTEBASE_URL: https://fab2-82-26-72-60.ngrok-free.app/ + BYTEBASE_SERVICE_ACCOUNT: cicd_srv@service.bytebase.com # set service account via environment variable + BYTEBASE_SERVICE_ACCOUNT_SECRET: ${{ secrets.BYTEBASE_SERVICE_ACCOUNT_SECRET }} # set service account secret via environment variable + BYTEBASE_PROJECT: "projects/db333" + BYTEBASE_TARGETS: "instances/dbdbdb/databases/db_1" + FILE_PATTERN: "migrations-semver/*.sql" run: | bytebase-action check --url=${{ env.BYTEBASE_URL }} --project=${{ env.BYTEBASE_PROJECT }} --targets=${{ env.BYTEBASE_TARGETS }} --file-pattern=${{ env.FILE_PATTERN }} From 3d5ef174239d305ab2f26bbf7cf77b2ef5bd3a1c Mon Sep 17 00:00:00 2001 From: p0ny Date: Wed, 3 Jun 2026 12:00:16 +0800 Subject: [PATCH 2/2] update --- .github/workflows/sql-review-action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sql-review-action.yml b/.github/workflows/sql-review-action.yml index cf7cf1e..ac2fa3f 100644 --- a/.github/workflows/sql-review-action.yml +++ b/.github/workflows/sql-review-action.yml @@ -11,7 +11,7 @@ jobs: pull-requests: write # write permission required to allow the action writes the check results to the comment. runs-on: ubuntu-latest # use self-hosted machines if your Bytebase runs in internal networks. container: - image: docker://bytebase/bytebase-action:latest + image: docker://bytebase/bytebase-action:3.19.0 steps: - name: Checkout uses: actions/checkout@v4