Skip to content

Commit 8c55e2b

Browse files
committed
use here string
1 parent 861c528 commit 8c55e2b

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

action.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,25 @@ runs:
5656
sudo apt-get update
5757
sudo apt-get install -y apptainer
5858
59-
- name: Prepare environment.yaml
59+
- name: Prepare .snakemake.environment.yaml
6060
shell: bash -el {0}
61-
run: sed 's/{{ snakemake_version }}/${{ inputs.snakemake-version }}/g' environment.yaml.template > environment.yaml
61+
run: |8
62+
cat <<EOF > .snakemake.environment.yaml
63+
channels:
64+
- conda-forge
65+
- bioconda
66+
- nodefaults
67+
dependencies:
68+
- snakemake ==${{ inputs.snakemake-version }}
69+
EOF
6270
6371
- name: Setup conda
6472
uses: conda-incubator/setup-miniconda@v3
6573
with:
6674
channels: conda-forge,bioconda
6775
channel-priority: strict
6876
miniforge-version: latest
69-
environment-file: environment.yaml
77+
environment-file: .snakemake.environment.yaml
7078
activate-environment: snakemake
7179

7280
- name: Display snakemake version

0 commit comments

Comments
 (0)