-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
action.yml
33 lines (33 loc) · 936 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: "Python Poetry Action"
author: "@abatilo"
description: "An action to run https://github.com/python-poetry/poetry"
branding:
icon: "truck"
color: "gray-dark"
inputs:
poetry-version:
description: "The version of poetry to install"
required: false
default: "latest"
poetry-plugins:
description: "The whitespace/newline-separated list of poetry plugins to install."
required: false
default: ""
runs:
using: "composite"
steps:
- if: ${{ inputs.poetry-version == 'latest' }}
run: |
pip install -U poetry
shell: bash
- if: ${{ inputs.poetry-version != 'latest' }}
run: |
pip install poetry==${{ inputs.poetry-version }}
shell: bash
- if: ${{ inputs.poetry-plugins != '' }}
run: |
ALL_PLUGINS=$(echo "${{ inputs.poetry-plugins }}")
for PLUGIN in $ALL_PLUGINS; do
poetry self add $PLUGIN
done
shell: bash