Skip to content

Commit c255aa8

Browse files
committed
👷 [github] Append to GITHUB_ENV in Python
This is horrible, but apparently Powershell's quote handling is too broken to do this portably in the default shell. The previous version just ate the double quotes.
1 parent 6a15db7 commit c255aa8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎.github/workflows/tests.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,15 @@ jobs:
4646
run: |
4747
pip install --constraint=.github/workflows/constraints.txt pip
4848
pip --version
49-
python -c 'import pip; print(f"VIRTUALENV_PIP={pip.__version__}")' >> $GITHUB_ENV
49+
50+
- name: Upgrade pip in virtual environments
51+
shell: python
52+
run: |
53+
import os
54+
import pip
55+
56+
with open(os.environ["GITHUB_ENV"], mode="a") as io:
57+
print(f"VIRTUALENV_PIP={pip.__version__}", file=io)
5058
5159
- name: Install Poetry
5260
run: |

0 commit comments

Comments
 (0)