You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -84,11 +94,11 @@ You can specify extra environment specs using the `create-args` input.
84
94
You can specify custom arguments for the `micromamba create` command using the `create-args` input. See `micromamba create --help` for more information.
85
95
86
96
> [!NOTE]
87
-
> This is the same argument as in the [previous example](#create-environment-from-environment-specs) but with different semantics.
97
+
> This is the same argument as in the [previous example](#create-environment-from-environment-specs) but with different semantics.
88
98
> This is because internally, `setup-micromamba` uses the `micromamba create` command to create the environment from the environment file and there, extra specs are specified by adding them as extra arguments to the `micromamba create` command.
89
99
90
100
```yml
91
-
- uses: mamba-org/setup-micromamba@v1
101
+
- uses: mamba-org/setup-micromamba@v2
92
102
with:
93
103
environment-file: environment.yml
94
104
create-args: -v
@@ -102,7 +112,7 @@ By default, it will create shell initialization scripts for `bash`.
102
112
If you want to customize this, you can use the `init-shell` input.
103
113
104
114
```yml
105
-
- uses: mamba-org/setup-micromamba@v1
115
+
- uses: mamba-org/setup-micromamba@v2
106
116
with:
107
117
init-shell: bash
108
118
```
@@ -112,7 +122,7 @@ In case you don't want to initialize your shell, you can set `init-shell` to `no
112
122
You can also specify multiple shells by separating them with a space (or using the `>-` YAML block scalar)
113
123
114
124
```yml
115
-
- uses: mamba-org/setup-micromamba@v1
125
+
- uses: mamba-org/setup-micromamba@v2
116
126
with:
117
127
init-shell: >-
118
128
bash
@@ -137,7 +147,7 @@ You can set this behavior by specifying the `generate-run-shell` input (defaults
137
147
> Only available on macOS and Linux.
138
148
139
149
```yml
140
-
- uses: mamba-org/setup-micromamba@v1
150
+
- uses: mamba-org/setup-micromamba@v2
141
151
with:
142
152
generate-run-shell: true
143
153
environment-file: environment.yml
@@ -161,14 +171,14 @@ The action will also set the `CONDARC` environment variable to point to this fil
161
171
If nothing is specified, `setup-micromamba` will create a `.condarc` next to the micromamba binary with `conda-forge` as the only channel.
162
172
163
173
```yml
164
-
- uses: mamba-org/setup-micromamba@v1
174
+
- uses: mamba-org/setup-micromamba@v2
165
175
with:
166
176
environment-file: environment.yml
167
177
condarc-file: /path/to/.condarc
168
178
```
169
179
170
180
```yml
171
-
- uses: mamba-org/setup-micromamba@v1
181
+
- uses: mamba-org/setup-micromamba@v2
172
182
with:
173
183
environment-file: environment.yml
174
184
condarc: |
@@ -189,7 +199,7 @@ If `cache-environment` is set to `true` and `cache-environment-key` is not speci
189
199
> `setup-micromamba` will append a hash of the environment file and the `custom-args` as well as the environment name and OS to the cache key.
190
200
191
201
```yml
192
-
- uses: mamba-org/setup-micromamba@v1
202
+
- uses: mamba-org/setup-micromamba@v2
193
203
with:
194
204
environment-file: environment.yml
195
205
# only cache environment
@@ -198,7 +208,7 @@ If `cache-environment` is set to `true` and `cache-environment-key` is not speci
198
208
```
199
209
200
210
```yml
201
-
- uses: mamba-org/setup-micromamba@v1
211
+
- uses: mamba-org/setup-micromamba@v2
202
212
with:
203
213
environment-file: environment.yml
204
214
# persist only for runs on this commit.
@@ -210,7 +220,7 @@ If `cache-environment` is set to `true` and `cache-environment-key` is not speci
@@ -276,7 +286,7 @@ There is a total of 4 options:
276
286
If nothing is specified, `setup-micromamba` will default to `shell-init`.
277
287
278
288
```yml
279
-
- uses: mamba-org/setup-micromamba@v1
289
+
- uses: mamba-org/setup-micromamba@v2
280
290
with:
281
291
environment-file: environment.yml
282
292
post-cleanup: environment
@@ -287,7 +297,7 @@ If nothing is specified, `setup-micromamba` will default to `shell-init`.
287
297
You also might want to alter the default micromamba installation location to a temporary location. You can use `micromamba-binary-path: ${{ runner.temp }}/bin/micromamba` to do this.
288
298
289
299
```yml
290
-
- uses: mamba-org/setup-micromamba@v1
300
+
- uses: mamba-org/setup-micromamba@v2
291
301
with:
292
302
environment-file: environment.yml
293
303
# ${{ runner.temp }}\Scripts\micromamba.exe on Windows
@@ -312,7 +322,7 @@ You can control the download behavior of micromamba with the options `download-m
312
322
| Yes | true | set | Download to specified path |
313
323
314
324
```yml
315
-
- uses: mamba-org/setup-micromamba@v1
325
+
- uses: mamba-org/setup-micromamba@v2
316
326
with:
317
327
environment-file: environment.yml
318
328
download-micromamba: false
@@ -333,7 +343,7 @@ Due to a [security limitation of GitHub Actions](https://docs.github.com/en/acti
333
343
any caches created on a branch will not be available on the main/parent branch
334
344
after merging. This also applies to PRs.
335
345
336
-
In contrast, branches *can* use a cache created on the main/parent branch.
346
+
In contrast, branches *can* use a cache created on the main/parent branch.
337
347
338
348
See also [this thread](https://github.com/mamba-org/provision-with-micromamba/issues/42#issuecomment-1062007161).
339
349
@@ -378,8 +388,8 @@ Find the reasons below (taken from [setup-miniconda](https://github.com/conda-in
378
388
disabled execution of `Command Processor/Autorun` Windows registry keys, which
0 commit comments