This repository was archived by the owner on Feb 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +46
-1
lines changed
.github/actions/bytebase-cicd Expand file tree Collapse file tree 4 files changed +46
-1
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -32588,6 +32588,10 @@ async function run() {
32588
32588
const bbProject = core.getInput('bb-project', { required: true });
32589
32589
const bbDatabase = core.getInput('bb-database', { required: true });
32590
32590
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);
32591
32595
exports.ctx = () => {
32592
32596
return {
32593
32597
bbUrl: bbUrl,
Original file line number Diff line number Diff line change @@ -37,6 +37,19 @@ export async function run(): Promise<void> {
37
37
const bbDatabase = core . getInput ( 'bb-database' , { required : true } )
38
38
const ghToken = core . getInput ( 'gh-token' , { required : true } )
39
39
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
+
40
53
ctx = ( ) => {
41
54
return {
42
55
bbUrl : bbUrl ,
You can’t perform that action at this time.
0 commit comments