feat: improved configuration (#31)

This commit is contained in:
Morten Olsen
2024-01-14 12:49:54 +01:00
committed by GitHub
parent 2109bc3af9
commit 7436b3439c
14 changed files with 42 additions and 28 deletions

View File

@@ -59,7 +59,7 @@ class RunnerInstance extends EventEmitter<RunnerInstanceEvents> {
const { runs, secrets } = repos;
try {
const { script: scriptHash, input } = await runs.getById(id);
const scriptLocation = resolve(config.files.location, 'scripts', `${scriptHash}.js`);
const scriptLocation = resolve(config.files.data, 'scripts', `${scriptHash}.js`);
const script = await readFile(scriptLocation, 'utf-8');
const allSecrets = await secrets.getAll();
await runs.started(id);