Skip to content

Commit 9e2e595

Browse files
committed
workflows fix
1 parent 657bb49 commit 9e2e595

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

.github/workflows/build-docs.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ jobs:
2020
id: full-python-version
2121
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
2222

23-
- name: Bootstrap poetry
24-
run: |
25-
curl -sL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - -y
26-
echo "$HOME/.local/bin" >> $GITHUB_PATH
23+
- name: Set up poetry
24+
uses: Gr1N/setup-poetry@v8
2725

2826
- name: Configure poetry
2927
run: poetry config virtualenvs.in-project true

.github/workflows/python-publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ jobs:
2020
with:
2121
python-version: '3.x'
2222

23-
- name: Bootstrap poetry
24-
run: |
25-
curl -sL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - -y
26-
echo "$HOME/.local/bin" >> $GITHUB_PATH
23+
- name: Set up poetry
24+
uses: Gr1N/setup-poetry@v8
2725

2826
- name: Build
2927
run: poetry build

.github/workflows/python-test.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,8 @@ jobs:
8181
id: full-python-version
8282
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
8383

84-
- name: Bootstrap poetry
85-
run: |
86-
curl -sL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - -y
87-
echo "$HOME/.local/bin" >> $GITHUB_PATH
84+
- name: Set up poetry
85+
uses: Gr1N/setup-poetry@v8
8886

8987
- name: Configure poetry
9088
run: poetry config virtualenvs.in-project true

0 commit comments

Comments
 (0)