Skip to content

Commit 68d512f

Browse files
ci: PLT-716: replace POETRY_VERSION var to env
1 parent 7749d92 commit 68d512f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/build_pypi.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ on:
4141

4242
env:
4343
PYTHON_VERSION_FILE: "pyproject.toml"
44+
POETRY_VERSION: 2.1.2
4445

4546
jobs:
4647
ReleaseNotification:
@@ -63,9 +64,7 @@ jobs:
6364
sed -i "s/^version[ ]*=.*/version = \"${version}\"/g" ${{ env.PYTHON_VERSION_FILE }}
6465
6566
- name: "Install poetry"
66-
env:
67-
POETRY_VERSION: ${{ vars.POETRY_VERSION }}
68-
run: pipx install "poetry==${POETRY_VERSION}"
67+
run: pipx install "poetry==${{ env.POETRY_VERSION }}"
6968

7069
- name: "Set up Python"
7170
id: setup_python

.github/workflows/tests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ on:
2323
- 'release/**'
2424
workflow_dispatch:
2525

26+
env:
27+
POETRY_VERSION: 2.1.2
28+
2629
jobs:
2730
run_pytest:
2831
name: "pytest ${{ matrix.os }} | ${{ matrix.python-version }}"
@@ -39,9 +42,7 @@ jobs:
3942
- uses: actions/checkout@v4
4043

4144
- name: "Install poetry"
42-
env:
43-
POETRY_VERSION: ${{ vars.POETRY_VERSION }}
44-
run: pipx install "poetry==${POETRY_VERSION}"
45+
run: pipx install "poetry==${{ env.POETRY_VERSION }}"
4546

4647
- name: "Set up Python"
4748
id: setup_python

0 commit comments

Comments
 (0)