Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 8f31495

Browse files
committed
u
1 parent 2834869 commit 8f31495

File tree

4 files changed

+46
-1
lines changed

4 files changed

+46
-1
lines changed

.bb.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"config": [
3+
{
4+
"branch": "hotfix",
5+
"project": "db333",
6+
"database": "instances/dbdbdb/databases/db_11",
7+
"dir": "/migrations"
8+
},
9+
{
10+
"branch": "main",
11+
"project": "db333",
12+
"database": "instances/dbdbdb/databases/db_1",
13+
"dir": "/migrations"
14+
},
15+
{
16+
"branch": "dev",
17+
"project": "db333",
18+
"database": "instances/dbdbdb/databases/db_2",
19+
"dir": "/migrations"
20+
},
21+
{
22+
"branch": "staging",
23+
"project": "db333",
24+
"database": "instances/dbdbdb/databases/db_3",
25+
"dir": "/migrations"
26+
}
27+
]
28+
}

.github/actions/bytebase-cicd/dist/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32588,6 +32588,10 @@ async function run() {
3258832588
const bbProject = core.getInput('bb-project', { required: true });
3258932589
const bbDatabase = core.getInput('bb-database', { required: true });
3259032590
const ghToken = core.getInput('gh-token', { required: true });
32591+
const configContent = await fs.readFile('./.bb.json', { encoding: 'utf8' });
32592+
const config = JSON.parse(configContent);
32593+
core.info(JSON.stringify(pushPayload));
32594+
core.info(configContent);
3259132595
exports.ctx = () => {
3259232596
return {
3259332597
bbUrl: bbUrl,

.github/actions/bytebase-cicd/dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/bytebase-cicd/src/main.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ export async function run(): Promise<void> {
3737
const bbDatabase = core.getInput('bb-database', { required: true })
3838
const ghToken = core.getInput('gh-token', { required: true })
3939

40+
const configContent = await fs.readFile('./.bb.json', { encoding: 'utf8' })
41+
const config = JSON.parse(configContent) as {
42+
config: {
43+
branch: string
44+
project: string
45+
database: string
46+
dir: string
47+
}[]
48+
}
49+
50+
core.info(JSON.stringify(pushPayload))
51+
core.info(configContent)
52+
4053
ctx = () => {
4154
return {
4255
bbUrl: bbUrl,

0 commit comments

Comments
 (0)