diff --git a/action.yml b/action.yml index 44ce152..6eae187 100644 --- a/action.yml +++ b/action.yml @@ -73,7 +73,18 @@ runs: - snakemake ==${{ inputs.snakemake-version }} EOF + - name: Check if miniconda is already installed + id: check-miniconda + shell: bash -el {0} + run: | + if [ -d "$HOME/miniconda3" ]; then + echo "installed=true" >> $GITHUB_OUTPUT + else + echo "installed=false" >> $GITHUB_OUTPUT + fi + - name: Setup conda + if: steps.check-miniconda.outputs.installed == 'false' uses: conda-incubator/setup-miniconda@v3 with: channels: conda-forge,bioconda