mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 20:16:00 +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
|
||||
'on':
|
||||
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
|
||||
'on':
|
||||
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
|
||||
'on':
|
||||
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
|
||||
'on':
|
||||
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
|
||||
'on':
|
||||
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
|
||||
'on':
|
||||
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
|
||||
'on':
|
||||
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
|
||||
'on':
|
||||
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
|
||||
'on':
|
||||
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
|
||||
'on':
|
||||
push:
|
||||
|
||||
@@ -8,6 +8,11 @@ const outdir = path.resolve(path.join(__dirname, '..', '.github', 'workflows'));
|
||||
|
||||
const includes = {};
|
||||
|
||||
const HEADER = `# --------------------------------------------------------------------------------------------
|
||||
# This file is generated. Do not edit manually
|
||||
# --------------------------------------------------------------------------------------------
|
||||
`;
|
||||
|
||||
function readIncludes() {
|
||||
for (const file of fs.readdirSync(indir)) {
|
||||
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 out = path.join(outdir, json._templates[key].file);
|
||||
fs.writeFileSync(out, yaml.dump(converted, dumpOptions));
|
||||
fs.writeFileSync(out, HEADER + yaml.dump(converted, dumpOptions));
|
||||
}
|
||||
} 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