File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,12 @@ inputs:
3838runs :
3939 using : ' composite'
4040 steps :
41+ - name : Validate inputs
42+ if : ${{ ! (inputs.task == 'containerize' || inputs.task == 'run' )}}
43+ shell : bash -el {0}
44+ run : |
45+ echo 'Invalid value for "task": "${{ inputs.task }}". Options: "containerize", "run".'
46+ exit 1
4147 - shell : bash -el {0}
4248 run : sed 's/{{ snakemake_version }}/${{ inputs.snakemake-version }}/g' environment.yaml.template > environment.yaml
4349 - name : Setup conda
6571 if : ${{ inputs.task == 'containerize' }}
6672 shell : bash -el {0}
6773 run : snakemake --directory ${{ inputs.directory }} --snakefile ${{ inputs.snakefile }} --show-failed-logs ${{ inputs.args }} --containerize > Dockerfile
68- - if : ${{ ! (inputs.task == 'containerize' || inputs.task == 'run' )}}
69- shell : bash -el {0}
70- run : |
71- echo 'Invalid value for "task": "${{ inputs.task }}". Options: "containerize", "run".'
72- exit 1
7374
You can’t perform that action at this time.
0 commit comments