Skip to content

Commit d516713

Browse files
authored
ci: collapse poetry "check" and "install" steps (#154)
1 parent 08b3a2e commit d516713

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/actions/setup/action.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,13 @@ runs:
3737
shell: bash
3838
run: echo "${{ inputs.cache }}/tools/Scripts" >> $GITHUB_PATH
3939

40-
- name: "Check poetry installation"
41-
id: check-poetry
40+
- name: "Install Poetry"
4241
shell: bash
43-
continue-on-error: true
44-
run: poetry --version
45-
46-
- name: "Install poetry"
47-
shell: bash
48-
if: ${{ steps.check-poetry.outcome == 'failure'}}
4942
run: |
43+
if ! poetry --version; then
5044
"${{ steps.setup-python.outputs.python-path }}" -m venv "${{ inputs.cache }}/tools"
5145
pip install poetry==${{ inputs.poetry-version }}
46+
fi
5247
5348
- name: "Install development dependencies"
5449
shell: bash

0 commit comments

Comments
 (0)