Skip to content

Commit a9052f5

Browse files
committed
chore(ci): install poetry beforehand
1 parent 9e9dac0 commit a9052f5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/pre-release.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ jobs:
5353
artifact_name: ${{ steps.seal_source_code.outputs.artifact_name }}
5454
RELEASE_VERSION: ${{ steps.release_version.outputs.RELEASE_VERSION }}
5555
steps:
56+
# We use a pinned version of Poetry to be certain it won't modify source code before we create a hash
57+
- name: Install poetry
58+
run: |
59+
pipx install git+https://github.com/python-poetry/poetry@68b88e5390720a3dd84f02940ec5200bfce39ac6 # v1.5.0
60+
pipx inject poetry git+https://github.com/monim67/poetry-bumpversion@315fe3324a699fa12ec20e202eb7375d4327d1c4 # v0.3.1
61+
5662
- name: Export release version
5763
id: release_version
5864
run: |
@@ -75,12 +81,6 @@ jobs:
7581
with:
7682
ref: ${{ env.RELEASE_COMMIT }}
7783

78-
# We use a pinned version of Poetry to be certain it won't modify source code before we create a hash
79-
- name: Install poetry
80-
run: |
81-
pipx install git+https://github.com/python-poetry/poetry@68b88e5390720a3dd84f02940ec5200bfce39ac6 # v1.5.0
82-
pipx inject poetry git+https://github.com/monim67/poetry-bumpversion@315fe3324a699fa12ec20e202eb7375d4327d1c4 # v0.3.1
83-
8484
- name: Bump package version
8585
id: versioning
8686
run: poetry version "${RELEASE_VERSION}"

0 commit comments

Comments
 (0)