Skip to content

Commit 17d67ca

Browse files
committed
fix: test more explicit check
1 parent c1be8a7 commit 17d67ca

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

action.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,18 @@ runs:
7373
- snakemake ==${{ inputs.snakemake-version }}
7474
EOF
7575
76+
- name: Check if miniconda is already installed
77+
id: check-miniconda
78+
shell: bash -el {0}
79+
run: |
80+
if [ -d "/home/runner/miniconda3" ]; then
81+
echo "installed=true" >> $GITHUB_OUTPUT
82+
else
83+
echo "installed=false" >> $GITHUB_OUTPUT
84+
fi
85+
7686
- name: Setup conda
77-
if: ${{ !hashFiles('/home/runner/miniconda3/condabin/conda') }}
87+
if: steps.check-miniconda.outputs.installed == 'false'
7888
uses: conda-incubator/setup-miniconda@v3
7989
with:
8090
channels: conda-forge,bioconda

0 commit comments

Comments
 (0)