Skip to content

Commit 0ca9290

Browse files
committed
updating the set-env to use the new format
1 parent 008507b commit 0ca9290

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/tests.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ jobs:
2929
run: |
3030
curl -O -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py
3131
python get-poetry.py -y --version 1.0.10
32-
echo "::set-env name=PATH::$HOME/.poetry/bin:$PATH"
32+
echo "PATH={$HOME}/.poetry/bin:{$PATH}" >> $GITHUB_ENV
3333
rm get-poetry.py
3434
3535
- name: Get poetry cache paths from config
3636
run: |
37-
echo ::set-env name=poetry_cache_dir::$(poetry config --list | sed -n 's/.*cache-dir = //p' | sed -e 's/^"//' -e 's/"$//')
38-
echo ::set-env name=poetry_virtualenvs_path::$(poetry config --list | sed -n 's/.*virtualenvs.path = .* # //p' | sed -e 's/^"//' -e 's/"$//')
37+
echo "poetry_cache_dir=$(poetry config --list | sed -n 's/.*cache-dir = //p' | sed -e 's/^\"//' -e 's/\"$//')" >> $GITHUB_ENV
38+
echo "poetry_virtualenvs_path::$(poetry config --list | sed -n 's/.*virtualenvs.path = .* # //p' | sed -e 's/^\"//' -e 's/\"$//')" >> $GITHUB_ENV
3939
4040
- name: Configure poetry
4141
shell: bash

0 commit comments

Comments
 (0)