mirror of
https://github.com/MillironX/nf-configs.git
synced 2024-12-22 18:38:17 +00:00
declate NXF_GLOBAL_CONFIG in ci
This commit is contained in:
parent
2685275952
commit
66f191a1cf
2 changed files with 7 additions and 5 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -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 }}
|
||||
|
|
|
@ -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')
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue