Skip to content

Commit c5248fd

Browse files
committed
Set Poetry version via argument
1 parent 04287f8 commit c5248fd

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/actions/ci-setup/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ inputs:
77
python-version:
88
description: "The python version to install and setup"
99
required: true
10+
poetry-version:
11+
description: "The poetry version to install and setup"
12+
default: "2.2.1"
1013

1114
runs:
1215
using: composite
@@ -15,12 +18,12 @@ runs:
1518
uses: actions/setup-python@v4
1619
with:
1720
python-version: ${{ inputs.python-version }}
18-
- name: Install Poetry
21+
- name: Install Poetry ${{ inputs.poetry-version }}
1922
uses: snok/install-poetry@v1
2023
with:
2124
virtualenvs-create: true
2225
virtualenvs-in-project: true
23-
version: "2.2.1"
26+
version: ${{ inputs.poetry-version }}
2427
- name: add poetry to windows path
2528
if: runner.os == 'Windows'
2629
run: echo "C:/Users/runneradmin/.local/bin" >> $GITHUB_PATH

0 commit comments

Comments
 (0)