diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b927957..8226dac 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,9 @@ jobs: run: | wget -qO- get.nextflow.io | bash sudo mv nextflow /usr/local/bin/ + touch /usr/local/bin/test.config - name: Check ${{ matrix.profile }} profile env: SCRATCH: '~' + NXF_GLOBAL_CONFIG: /usr/local/bin/test.config run: nextflow run ${GITHUB_WORKSPACE}/configtest.nf --custom_config_base=${GITHUB_WORKSPACE} -profile ${{ matrix.profile }} diff --git a/conf/bi.config b/conf/bi.config index 6fa20d6..874d9f8 100644 --- a/conf/bi.config +++ b/conf/bi.config @@ -1,11 +1,11 @@ params.globalConfig = determine_global_config() -// includeConfig params.globalConfig +includeConfig params.globalConfig def determine_global_config() { - // if( System.getenv('NXF_GLOBAL_CONFIG') == null) - // { - // throw new Exception("Environment variable NXF_GLOBAL_CONFIG is missing. Set it to point to global.config file") - // } + if( System.getenv('NXF_GLOBAL_CONFIG') == null) + { + throw new Exception("Environment variable NXF_GLOBAL_CONFIG is missing. Set it to point to global.config file") + } return System.getenv('NXF_GLOBAL_CONFIG') }