You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,18 @@ Whether to run Snakemake or to generate a container image specification (in the
28
28
29
29
Whether used disk space shall be printed if Snakemake fails. Can be either `true` or `false` (default: `false`).
30
30
31
+
### `snakemake version`
32
+
33
+
Snakemake version to use. If not specified, uses latest version. Pin a specific version (e.g., '8.25.5') for reproducibility.
34
+
35
+
### `install-apptainer`
36
+
37
+
Install Apptainer (true/false)
38
+
39
+
### `environment-file`
40
+
41
+
Path to a custom Conda environment file containing snakemake (e.g., 'etc/custom-environment.yml'). If not specified, a default environment with snakemake is generated.
42
+
31
43
## Example usage
32
44
33
45
```yaml
@@ -46,6 +58,7 @@ Whether used disk space shall be printed if Snakemake fails. Can be either `true
Copy file name to clipboardExpand all lines: action.yml
+18-1Lines changed: 18 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,10 @@ inputs:
38
38
description: Install Apptainer (true/false)
39
39
required: false
40
40
default: false
41
+
environment-file:
42
+
description: Path to a custom Conda environment file containing snakemake (e.g., 'etc/custom-environment.yml'). If not specified, a default environment with snakemake is generated.
43
+
required: false
44
+
default: ''
41
45
42
46
runs:
43
47
using: 'composite'
@@ -59,7 +63,9 @@ runs:
59
63
fi
60
64
sudo apt-get update
61
65
sudo apt-get install -y apptainer
66
+
62
67
- name: Prepare .snakemake.environment.yaml
68
+
if: ${{ inputs.environment-file == '' }}
63
69
shell: bash -el {0}
64
70
run: |
65
71
cat <<EOF > .snakemake.environment.yaml
@@ -71,13 +77,24 @@ runs:
71
77
- snakemake ==${{ inputs.snakemake-version }}
72
78
EOF
73
79
80
+
- name: Validate custom environment file
81
+
if: ${{ inputs.environment-file != '' }}
82
+
shell: bash -el {0}
83
+
run: |
84
+
if [[ -f "${{ inputs.environment-file }}" ]]; then
0 commit comments