conda-incubator / setup-miniconda

Set up your GitHub Actions workflow with conda via miniconda
https://github.com/marketplace/actions/setup-miniconda
MIT License
405 stars 69 forks source link

v2.2.0 SemVer requirement breaks miniconda-version #261

Open bhperry opened 1 year ago

bhperry commented 1 year ago

The latest version of this action breaks pinning to specific versions of miniconda. The miniconda-version argument takes the form py37_4.9.2, which then gets rejected by the SemVer checker with a cryptic error message like this:

Run conda-incubator/setup-miniconda@v2.2.0
  with:
    miniconda-version: py37_4.9.2
    auto-update-conda: true
    activate-environment: saturn-k8s
    python-version: 3.7
    auto-activate-base: true
    remove-profiles: true
    architecture: x64
    clean-patched-environment-file: true
    run-post: true

Gathering Inputs...
Error: Invalid Version: py37_4.9.2

Pinned setup-miniconda back to v2.1.1 to get around the problem.

goanpeca commented 1 year ago

Hi @bhperry, thanks for the heads up,

Will look into it!

Cheers

bryanwweber commented 3 months ago

I also ran into this today, see the workflow run here: https://github.com/Cantera/conda-recipes/actions/runs/9648308218/job/26609160590 This is still a problem with v3

jaimergp commented 3 months ago

As a workaround I think we can use installer-url pointing to the direct URL of the Miniconda installers, I think.