Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion bin/pipelines.json.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@ export const writePipelinesJson = async () => {

// remove empty values from releases (usually from draft releases)
releases = releases.filter((release) => release.tag_name !== "" && release.draft === false);

// remove releases that are already in the pipelines.json file
const pipelineIndex = pipelines.remote_workflows.findIndex((workflow) => workflow.name === name);
let new_releases = releases;
Expand Down Expand Up @@ -469,6 +468,10 @@ export const writePipelinesJson = async () => {

data[`${branch}_nextflow_config_plugins`] = nextflowConfig.plugins;
data[`${branch}_nextflow_config_manifest`] = nextflowConfig.manifest;

// Check if the root main.nf file declares a `params {` block
const mainNf = await getGitHubFile(name, "main.nf", branch);
data[`${branch}_uses_params_block`] = mainNf ? /params\s*\{/.test(mainNf) : false;
}

new_releases = await Promise.all(
Expand Down
Loading
Loading