-
Notifications
You must be signed in to change notification settings - Fork 53
/
action.yml
47 lines (47 loc) · 1.73 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: "Install Poetry Action"
author: "Sondre Lillebø Gundersen <sondrelg@live.no>"
description: "Installs and configures Poetry"
branding:
icon: "package"
color: "green"
inputs:
version:
description: "The Poetry version to install"
required: true
default: "latest"
virtualenvs-create:
description: "Whether Poetry should create a virtualenv or not"
required: false
default: "true"
virtualenvs-in-project:
description: "Whether Poetry should create virtualenvs in the project directory or not"
required: false
default: "false"
virtualenvs-path:
description: "The Poetry virtualenv path"
required: false
default: "{cache-dir}/virtualenvs"
installer-parallel:
description: "Whether to install many packages at once or one by one. This can fix PyPI DNS resolution errors, but also slows down the installation"
required: false
default: "true"
installation-arguments:
description: "Arguments passed directly to the Poetry installation script. For example --force."
required: false
plugins:
description: "Whitespace-delimited list of poetry plugins to install. Requires Poetry>=1.2"
required: false
runs:
using: "composite"
steps:
- name: Install and configure Poetry
run: $GITHUB_ACTION_PATH/main.sh
shell: bash
env:
VERSION: ${{ inputs.version }}
VIRTUALENVS_CREATE: ${{ inputs.virtualenvs-create }}
VIRTUALENVS_IN_PROJECT: ${{ inputs.virtualenvs-in-project }}
VIRTUALENVS_PATH: ${{ inputs.virtualenvs-path }}
INSTALLER_PARALLEL: ${{ inputs.installer-parallel }}
INSTALLATION_ARGUMENTS: ${{ inputs.installation-arguments }}
POETRY_PLUGINS: ${{ inputs.plugins }}