Skip to content

Commit

Permalink
use here string
Browse files Browse the repository at this point in the history
  • Loading branch information
tedil committed Dec 10, 2024
1 parent 861c528 commit 8c55e2b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,25 @@ runs:
sudo apt-get update
sudo apt-get install -y apptainer
- name: Prepare environment.yaml
- name: Prepare .snakemake.environment.yaml
shell: bash -el {0}
run: sed 's/{{ snakemake_version }}/${{ inputs.snakemake-version }}/g' environment.yaml.template > environment.yaml
run: |8
cat <<EOF > .snakemake.environment.yaml
channels:
- conda-forge
- bioconda
- nodefaults
dependencies:
- snakemake ==${{ inputs.snakemake-version }}
EOF
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
channels: conda-forge,bioconda
channel-priority: strict
miniforge-version: latest
environment-file: environment.yaml
environment-file: .snakemake.environment.yaml
activate-environment: snakemake

- name: Display snakemake version
Expand Down

0 comments on commit 8c55e2b

Please sign in to comment.