File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 7
7
paths :
8
8
- " migrations-semver/*.sql"
9
9
10
+ env :
11
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # set GITHUB_TOKEN because the 'Check release' step needs it to comment the pull request with check results.
12
+ BYTEBASE_URL : https://demo.bytebase.com
13
+ BYTEBASE_SERVICE_ACCOUNT : api@service.bytebase.com
14
+ BYTEBASE_SERVICE_ACCOUNT_SECRET : ${{ secrets.BYTEBASE_SERVICE_ACCOUNT_SECRET }}
15
+ BYTEBASE_PROJECT : " projects/hr"
16
+ BYTEBASE_TARGETS : " instances/prod-sample-instance/databases/hr_prod"
17
+ FILE_PATTERN : " migrations-semver/*.sql"
18
+
10
19
jobs :
11
20
check-release-on-prod :
12
21
permissions :
18
27
- name : Checkout
19
28
uses : actions/checkout@v4
20
29
- name : Check release
21
- env :
22
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # set GITHUB_TOKEN because the 'Check release' step needs it to comment the pull request with check results.
23
- BYTEBASE_URL : https://demo.bytebase.com
24
- BYTEBASE_SERVICE_ACCOUNT : api@service.bytebase.com
25
- BYTEBASE_PROJECT : " projects/hr"
26
- BYTEBASE_TARGETS : " instances/prod-sample-instance/databases/hr_prod"
27
- FILE_PATTERN : " migrations-semver/*.sql"
28
30
run : |
29
31
bytebase-action check --url=${{ env.BYTEBASE_URL }} --service-account=${{ env.BYTEBASE_SERVICE_ACCOUNT }} --service-account-secret=${{ secrets.BYTEBASE_SERVICE_ACCOUNT_SECRET }} --project=${{ env.BYTEBASE_PROJECT }} --targets=${{ env.BYTEBASE_TARGETS }} --file-pattern=${{ env.FILE_PATTERN }}
You can’t perform that action at this time.
0 commit comments