generated header

This commit is contained in:
Jan Prochazka
2024-12-30 08:28:25 +01:00
parent 2966484cda
commit 0cf3d5993c
11 changed files with 37 additions and 2 deletions

View File

@@ -1,3 +1,6 @@
# --------------------------------------------------------------------------------------------
# This file is generated. Do not edit manually
# --------------------------------------------------------------------------------------------
name: Electron app BETA name: Electron app BETA
'on': 'on':
push: push:

View File

@@ -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:

View File

@@ -1,3 +1,6 @@
# --------------------------------------------------------------------------------------------
# This file is generated. Do not edit manually
# --------------------------------------------------------------------------------------------
name: Electron app PREMIUM name: Electron app PREMIUM
'on': 'on':
push: push:

View File

@@ -1,3 +1,6 @@
# --------------------------------------------------------------------------------------------
# This file is generated. Do not edit manually
# --------------------------------------------------------------------------------------------
name: Electron app name: Electron app
'on': 'on':
push: push:

View File

@@ -1,3 +1,6 @@
# --------------------------------------------------------------------------------------------
# This file is generated. Do not edit manually
# --------------------------------------------------------------------------------------------
name: AWS image PREMIUM name: AWS image PREMIUM
'on': 'on':
push: push:

View File

@@ -1,3 +1,6 @@
# --------------------------------------------------------------------------------------------
# This file is generated. Do not edit manually
# --------------------------------------------------------------------------------------------
name: Docker image PREMIUM name: Docker image PREMIUM
'on': 'on':
push: push:

View File

@@ -1,3 +1,6 @@
# --------------------------------------------------------------------------------------------
# This file is generated. Do not edit manually
# --------------------------------------------------------------------------------------------
name: Docker image Community name: Docker image Community
'on': 'on':
push: push:

View File

@@ -1,3 +1,6 @@
# --------------------------------------------------------------------------------------------
# This file is generated. Do not edit manually
# --------------------------------------------------------------------------------------------
name: NPM packages PREMIUM name: NPM packages PREMIUM
'on': 'on':
push: push:

View File

@@ -1,3 +1,6 @@
# --------------------------------------------------------------------------------------------
# This file is generated. Do not edit manually
# --------------------------------------------------------------------------------------------
name: NPM packages name: NPM packages
'on': 'on':
push: push:

View File

@@ -1,3 +1,6 @@
# --------------------------------------------------------------------------------------------
# This file is generated. Do not edit manually
# --------------------------------------------------------------------------------------------
name: Run tests name: Run tests
'on': 'on':
push: push:

View File

@@ -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));
} }
} }
} }