prefix-dev / setup-pixi

GitHub Action to set up pixi :octocat: 📦
https://pixi.sh/dev/advanced/github_actions
BSD 3-Clause "New" or "Revised" License
56 stars 10 forks source link

Support installer environment variables? #97

Closed wpbonelli closed 7 months ago

wpbonelli commented 7 months ago

The pixi docs describe several environment variables which control the behavior of the installer scripts. I know this action installs pixi via downloadTool(), not with the install scripts, but perhaps still worth supporting? At least the ones shared on all platforms:

Just convenience, but it would be nice to be able to set PIXI_VERSION at the top of a workflow instead of setting version separately wherever this action is used.

I guess the way to do this would be to check process.env here

pavelzw commented 7 months ago

I want to keep downloadTool as changing this to for example the install.sh script can break things in corporate environments behind a proxy (I had this problem in https://github.com/mamba-org/setup-micromamba/pull/61 before).

Not sure about PIXI_VERSION as this introduces a second way to basically do the same thing without being clear which the preferred way is. I'm also unsure how other setup-* actions do this. I would suppose they also only use the GitHub-provided input arguments.

wpbonelli commented 7 months ago

It does look like other setup-* actions just use the input. I will close this.