Skip to content

Commit

Permalink
Also warn for the pypy variant
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Jul 25, 2024
1 parent 0d6eed6 commit cac6c50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48881,7 +48881,8 @@ function parseInputs() {
if (core.isDebug()) {
core.info(JSON.stringify(inputs));
}
if (inputs.miniforgeVariant === "Mambaforge") {
if (inputs.miniforgeVariant === "Mambaforge" ||
inputs.miniforgeVariant === "Mambaforge-pypy3") {
core.warning("'Mambaforge' variants are now equivalent to 'Miniforge3'. " +
"In the future, we will ignore with a warning and use 'Miniforge3'. " +
"Eventually, using 'Mambaforge' will throw an error. " +
Expand Down
5 changes: 4 additions & 1 deletion src/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ export async function parseInputs(): Promise<types.IActionInputs> {
core.info(JSON.stringify(inputs));
}

if (inputs.miniforgeVariant === "Mambaforge") {
if (
inputs.miniforgeVariant === "Mambaforge" ||
inputs.miniforgeVariant === "Mambaforge-pypy3"
) {
core.warning(
"'Mambaforge' variants are now equivalent to 'Miniforge3'. " +
"In the future, we will ignore with a warning and use 'Miniforge3'. " +
Expand Down

0 comments on commit cac6c50

Please sign in to comment.