Skip to content

Commit

Permalink
Use shyaml for yaml parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mrakitin committed Mar 25, 2024
1 parent 059ac55 commit e912bbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit e912bbd

Please sign in to comment.