Skip to content

Commit ed2c2ae

Browse files
committed
Refactor poetry version
1 parent f3c4fd4 commit ed2c2ae

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/actions/config-poetry-win/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
name: Configure Poetry for Windows
33
description: GitHub Action to configure a poetry project for windows runner
44

5+
inputs:
6+
poetry_version:
7+
description: The version of poetry to install
8+
default: 2.2.1
59
outputs:
610
BUILD_NUMBER:
711
description: The build number, incremented or reused if already cached
@@ -42,7 +46,7 @@ runs:
4246
id: install_poetry
4347
shell: bash
4448
run: |
45-
pip install poetry==2.2.1
49+
pip install poetry==${{ inputs.poetry_version }}
4650
- name: Config Poetry
4751
id: config
4852
shell: bash

.github/actions/config-poetry/action.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
name: Configure Poetry
33
description: GitHub Action to configure a poetry project
44

5+
inputs:
6+
poetry_version:
7+
description: The version of poetry to install
8+
default: 2.2.1
9+
jfrog_version:
10+
description: The version of jFrog to install
11+
default: 2.77.0
512
outputs:
613
BUILD_NUMBER:
714
description: The build number, incremented or reused if already cached
@@ -27,7 +34,7 @@ runs:
2734
- uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
2835
with:
2936
version: 2025.7.12
30-
install_args: "jfrog-cli@2.77.0 poetry@2.2.1"
37+
install_args: "jfrog-cli@${{ inputs.jfrog_version }} poetry@${{ inputs.poetry_version}}"
3138
- name: Vault
3239
# yamllint disable rule:line-length
3340
id: secrets
@@ -44,7 +51,7 @@ runs:
4451
ARTIFACTORY_PYPI_REPO: sonarsource-pypi
4552
ARTIFACTORY_ACCESS_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_ACCESS_TOKEN }}
4653
run: |
47-
mise use -g poetry@2.2.1
48-
mise use -g jfrog-cli@2.77.0
54+
mise use -g poetry@${{ inputs.poetry_version }}
55+
mise use -g jfrog-cli@${{ inputs.jfrog_version }}
4956
${GITHUB_ACTION_PATH}/../../scripts/config-poetry.sh
5057

0 commit comments

Comments
 (0)