-
Notifications
You must be signed in to change notification settings - Fork 16
/
action.yml
101 lines (98 loc) · 3.51 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: setup-micromamba
description: 'Install the micromamba package manager'
author: 'Pavel Zwerschke'
branding:
icon: 'package'
color: 'green'
inputs:
condarc-file:
description: |
Path to a condarc file to use
condarc:
description: |
Contents of a condarc file to use.
environment-file:
description: |
Path to the `environment.yml` or `.lock` file for the environment.
environment-name:
description: |
Name of the environment to create. Overrides the name in the environment file.
create-args:
description: |
Extra arguments to pass to `micromamba create`.
Also possible to list extra specs to install into the environment.
For multiple packages, separate using spaces or use multiline syntax:
```yml
create-args: package1 package2
# or
create-args: >-
package1
package2
```
log-level:
description: |
Log level for micromamba.
One of `'trace'`, `'debug'`, `'info'`, `'warning'`, `'error'`, `'critical'`, `'off'`.
micromamba-version:
description: |
Version of micromamba to install.
Must match with a micromamba version from the https://github.com/mamba-org/micromamba-releases repository or 'latest'.
micromamba-url:
description: |
URL to download micromamba from.
download-micromamba:
description: |
If `true` (the default), the action will download micromamba to `micromamba-binary-path`.
If `false`, the action will not attempt to download micromamba, and you should provide a micromamba binary at `micromamba-binary-path` if micromamba is not already on PATH.
init-shell:
description: |
Which shells to initialize micromamba in.
Also possible to list multiple shells using spaces or use multiline syntax:
```yml
init-shell: bash cmd.exe powershell
# or
init-shell: >-
bash
cmd.exe
powershell
```
To initialize no shell, use `'none'`.
Also supports other shells than bash, cmd.exe and powershell, but they are not tested.
generate-run-shell:
description: |
Whether to generate a custom shell script that allows to use it in the workflow file using `run: micromamba-shell {0}`
cache-downloads:
description: |
Whether to cache downloads or not.
cache-downloads-key:
description: |
Cache key to use for caching.
cache-environment:
description: |
Whether to cache the environment or not.
cache-environment-key:
description: |
Cache key to use for caching.
post-cleanup:
description: |
Which kind of cleanup to do after the action.
`'none'` - do not cleanup anything.
`'shell-init'` - cleanup only the shell initialization scripts.
`'environment'` - cleanup the installed environment and shell initialization scripts.
`'all'` - cleanup everything including the whole micromamba root folder and the micromamba binary.
micromamba-root-path:
description: |
Path to the micromamba root folder.
Defaults to `~/micromamba`.
micromamba-binary-path:
description: |
Path to the micromamba binary.
Defaults to `~/micromamba-bin/micromamba`.
Also specifies the path to the custom condarc which is located in the same folder as the micromamba binary.
outputs:
environment-path:
description: Path to the created environment. Only populated if environment was created, i.e., `environment-file` or `environment-name` was specified.
runs:
using: node20
main: dist/main.js
post: dist/post.js