Skip to content

Commit f8033b8

Browse files
committed
workflows fix
1 parent 657bb49 commit f8033b8

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
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: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ jobs:
2828
id: full-python-version
2929
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
3030

31-
- name: Bootstrap poetry
32-
run: |
33-
curl -sL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - -y
34-
echo "$HOME/.local/bin" >> $GITHUB_PATH
31+
- name: Set up poetry
32+
uses: Gr1N/setup-poetry@v8
3533

3634
- name: Configure poetry
3735
run: poetry config virtualenvs.in-project true
@@ -81,10 +79,8 @@ jobs:
8179
id: full-python-version
8280
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
8381

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
82+
- name: Set up poetry
83+
uses: Gr1N/setup-poetry@v8
8884

8985
- name: Configure poetry
9086
run: poetry config virtualenvs.in-project true

0 commit comments

Comments
 (0)