mamba-org / setup-micromamba

GitHub Action to set up micromamba
MIT License
105 stars 16 forks source link

Environment creation fails if environment.yml file has comments at top of file #81

Closed GBBBAS closed 1 year ago

GBBBAS commented 1 year ago

Hi,

Recently, this github action started failing for my pipeline where it used to work before with the following error: Error: Could not determine environment name from file environment.yml

Example: https://github.com/rtdip/core/actions/runs/5241275225/jobs/9463153612

I have identified that this occurs when there are comments at the top of the file. When I remove the comments, the environment install works.

Did something change in this github action that causes this to now happen? Ultimately we need to have copyright headers at the top of the file, so would like this to work.

pavelzw commented 1 year ago

Hmm, this may have something to do with #79 which I released three days ago. I'll look into it.

pavelzw commented 1 year ago

Thanks for the quick issue! I fixed it in #82 and added a unit test covering your case.

GBBBAS commented 1 year ago

Awesome, thanks for the quick response!