mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 23:45:59 +00:00
generated header
This commit is contained in:
3
.github/workflows/build-app-beta.yaml
vendored
3
.github/workflows/build-app-beta.yaml
vendored
@@ -1,3 +1,6 @@
|
|||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
|
# This file is generated. Do not edit manually
|
||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
name: Electron app BETA
|
name: Electron app BETA
|
||||||
'on':
|
'on':
|
||||||
push:
|
push:
|
||||||
|
|||||||
3
.github/workflows/build-app-pro-beta.yaml
vendored
3
.github/workflows/build-app-pro-beta.yaml
vendored
@@ -1,3 +1,6 @@
|
|||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
|
# This file is generated. Do not edit manually
|
||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
name: Electron app PREMIUM BETA
|
name: Electron app PREMIUM BETA
|
||||||
'on':
|
'on':
|
||||||
push:
|
push:
|
||||||
|
|||||||
3
.github/workflows/build-app-pro.yaml
vendored
3
.github/workflows/build-app-pro.yaml
vendored
@@ -1,3 +1,6 @@
|
|||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
|
# This file is generated. Do not edit manually
|
||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
name: Electron app PREMIUM
|
name: Electron app PREMIUM
|
||||||
'on':
|
'on':
|
||||||
push:
|
push:
|
||||||
|
|||||||
3
.github/workflows/build-app.yaml
vendored
3
.github/workflows/build-app.yaml
vendored
@@ -1,3 +1,6 @@
|
|||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
|
# This file is generated. Do not edit manually
|
||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
name: Electron app
|
name: Electron app
|
||||||
'on':
|
'on':
|
||||||
push:
|
push:
|
||||||
|
|||||||
3
.github/workflows/build-aws-pro-beta.yaml
vendored
3
.github/workflows/build-aws-pro-beta.yaml
vendored
@@ -1,3 +1,6 @@
|
|||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
|
# This file is generated. Do not edit manually
|
||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
name: AWS image PREMIUM
|
name: AWS image PREMIUM
|
||||||
'on':
|
'on':
|
||||||
push:
|
push:
|
||||||
|
|||||||
3
.github/workflows/build-docker-pro.yaml
vendored
3
.github/workflows/build-docker-pro.yaml
vendored
@@ -1,3 +1,6 @@
|
|||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
|
# This file is generated. Do not edit manually
|
||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
name: Docker image PREMIUM
|
name: Docker image PREMIUM
|
||||||
'on':
|
'on':
|
||||||
push:
|
push:
|
||||||
|
|||||||
3
.github/workflows/build-docker.yaml
vendored
3
.github/workflows/build-docker.yaml
vendored
@@ -1,3 +1,6 @@
|
|||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
|
# This file is generated. Do not edit manually
|
||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
name: Docker image Community
|
name: Docker image Community
|
||||||
'on':
|
'on':
|
||||||
push:
|
push:
|
||||||
|
|||||||
3
.github/workflows/build-npm-pro.yaml
vendored
3
.github/workflows/build-npm-pro.yaml
vendored
@@ -1,3 +1,6 @@
|
|||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
|
# This file is generated. Do not edit manually
|
||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
name: NPM packages PREMIUM
|
name: NPM packages PREMIUM
|
||||||
'on':
|
'on':
|
||||||
push:
|
push:
|
||||||
|
|||||||
3
.github/workflows/build-npm.yaml
vendored
3
.github/workflows/build-npm.yaml
vendored
@@ -1,3 +1,6 @@
|
|||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
|
# This file is generated. Do not edit manually
|
||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
name: NPM packages
|
name: NPM packages
|
||||||
'on':
|
'on':
|
||||||
push:
|
push:
|
||||||
|
|||||||
3
.github/workflows/run-tests.yaml
vendored
3
.github/workflows/run-tests.yaml
vendored
@@ -1,3 +1,6 @@
|
|||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
|
# This file is generated. Do not edit manually
|
||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
name: Run tests
|
name: Run tests
|
||||||
'on':
|
'on':
|
||||||
push:
|
push:
|
||||||
|
|||||||
@@ -8,6 +8,11 @@ const outdir = path.resolve(path.join(__dirname, '..', '.github', 'workflows'));
|
|||||||
|
|
||||||
const includes = {};
|
const includes = {};
|
||||||
|
|
||||||
|
const HEADER = `# --------------------------------------------------------------------------------------------
|
||||||
|
# This file is generated. Do not edit manually
|
||||||
|
# --------------------------------------------------------------------------------------------
|
||||||
|
`;
|
||||||
|
|
||||||
function readIncludes() {
|
function readIncludes() {
|
||||||
for (const file of fs.readdirSync(indir)) {
|
for (const file of fs.readdirSync(indir)) {
|
||||||
const text = fs.readFileSync(path.join(indir, file), { encoding: 'utf-8' });
|
const text = fs.readFileSync(path.join(indir, file), { encoding: 'utf-8' });
|
||||||
@@ -145,10 +150,10 @@ function processFiles() {
|
|||||||
};
|
};
|
||||||
const converted = processJson(_.omit(json, ['_templates']), args);
|
const converted = processJson(_.omit(json, ['_templates']), args);
|
||||||
const out = path.join(outdir, json._templates[key].file);
|
const out = path.join(outdir, json._templates[key].file);
|
||||||
fs.writeFileSync(out, yaml.dump(converted, dumpOptions));
|
fs.writeFileSync(out, HEADER + yaml.dump(converted, dumpOptions));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fs.writeFileSync(path.join(outdir, file), yaml.dump(processJson(json), dumpOptions));
|
fs.writeFileSync(path.join(outdir, file), HEADER + yaml.dump(processJson(json), dumpOptions));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user