Skip to content

Commit

Permalink
only keep default branch from manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Dec 17, 2024
1 parent c3ecddf commit 49758bd
Show file tree
Hide file tree
Showing 3 changed files with 2,424 additions and 12,242 deletions.
Binary file modified .cache.tar.xz
Binary file not shown.
14 changes: 3 additions & 11 deletions bin/pipelines.json.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,23 +335,15 @@ export const writePipelinesJson = async () => {
(response) => {
if (response) {
// use regex to find all plugins in nextflow.config
let manifest = response.match(/manifest\s*{([^}]*)}/s)[0];
let parsedManifest = response.match(/manifest\s*{([^}]*)}/s)[0];
// convert to object
manifest = manifest
.split('\n')
.filter((line) => line.includes('='))
.map((line) => line.match(/([^=]*)\s*=\s*['"]([^'"]*)['"]/))
.reduce((acc, [_, key, value]) => {
acc[key.trim()] = value.trim();
return acc;
}, {});
let manifest = {};
manifest['defaultBranch'] = parsedManifest.match(/defaultBranch\s*=\s*['"]([^'"]+)['"]/);
return manifest;
}
return {};
},
);
console.log('branch=', branch);
console.log(data[`${branch}_nextflow_config_manifest`]);
}

new_releases = await Promise.all(
Expand Down
Loading

0 comments on commit 49758bd

Please sign in to comment.