Fix quotes for date command in conda env filter
This commit is contained in:
4
.github/actions/create-conda-env/action.yml
vendored
4
.github/actions/create-conda-env/action.yml
vendored
@@ -5,8 +5,8 @@ runs:
|
||||
steps:
|
||||
- name: Create conda environments
|
||||
run: |
|
||||
if conda env list | grep -q "envs/${{ env.conda-env-name-no-time }}-$(date --date \"${{ env.workflow-timestamp }}\" +%Y%m%d)"; then
|
||||
echo "Using pre-existing conda environments with prefix ${{ env.conda-env-name-no-time }}-$(date --date \"${{ env.workflow-timestamp }}\" +%Y%m%d)"
|
||||
if conda env list | grep -q "envs/${{ env.conda-env-name-no-time }}-$(date --date ${{ env.workflow-timestamp }} +%Y%m%d)"; then
|
||||
echo "Using pre-existing conda environments with prefix ${{ env.conda-env-name-no-time }}-$(date --date ${{ env.workflow-timestamp }} +%Y%m%d)"
|
||||
else
|
||||
echo "Creating a conda environment for each toolchain with the toolchain installed"
|
||||
conda activate base
|
||||
|
||||
Reference in New Issue
Block a user