diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 3c446c0..bb40baf 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -30,7 +30,7 @@ jobs: - name: Install YAML CLI tools run: | - python3 -m pip install shyaml yq + python3 -m pip install shyaml - name: Set env vars run: | @@ -48,9 +48,9 @@ jobs: export CONDA_PACK_TEMPLATE_DIR=${HOME}/conda-pack-template echo "CONDA_PACK_TEMPLATE_DIR=${CONDA_PACK_TEMPLATE_DIR}" >> $GITHUB_ENV - # env_name=$(cat configs/config-py${PYTHONVER}.yml | shyaml get-value env_name) - env_name=$(cat configs/config-py${PYTHONVER}.yml | yq .env_name) - # env_name=$(cat configs/config-py${PYTHONVER}.yml | grep -e "^env_name:" | cut -d ":" -f2 | sed 's/ //g; s/"//g') + env_name=$(cat configs/config-py${PYTHONVER}.yml | shyaml get-value env_name) + # env_name=$(cat configs/config-py${PYTHONVER}.yml | yq .env_name) + # env_name=$(cat configs/config-py${PYTHONVER}.yml | grep -e "^env_name:" | tail -n1 | cut -d ":" -f2 | sed 's/ //g; s/"//g') export CONDA_PACK_ENV_NAME=${env_name} echo "CONDA_PACK_ENV_NAME=${CONDA_PACK_ENV_NAME}" >> $GITHUB_ENV