Skip to content

Commit bfdcdc9

Browse files
authored
New: [AEA-5690] - Add poetry reinstall (#16)
## Summary - ✨ New Feature ### Details Adds the option to reinstall poetry on top of the python version installed by asdf.
1 parent bf9147b commit bfdcdc9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/quality-checks.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
description: Toggle to run sonar code analyis on this repository.
1717
default: true
1818
required: false
19+
reinstall_poetry:
20+
type: boolean
21+
description: Toggle to reinstall poetry on top of python version installed by asdf.
22+
default: false
1923

2024
jobs:
2125
quality_checks:
@@ -87,6 +91,14 @@ jobs:
8791
env:
8892
PYTHON_CONFIGURE_OPTS: --enable-shared
8993

94+
- name: Reinstall poetry
95+
if: ${{ inputs.reinstall_poetry }}
96+
run: |
97+
poetry_tool_version=$(cat .tool-versions | grep poetry)
98+
poetry_version=${poetry_tool_version//"poetry "}
99+
asdf uninstall poetry $poetry_version
100+
asdf install poetry
101+
90102
- name: Setting up .npmrc
91103
env:
92104
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)