Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for custom shells (specifically, for conda env support) #65

Open
tlambert03 opened this issue Mar 28, 2023 · 1 comment · May be fixed by #111
Open

Support for custom shells (specifically, for conda env support) #65

tlambert03 opened this issue Mar 28, 2023 · 1 comment · May be fixed by #111

Comments

@tlambert03
Copy link

I have a project that requires dependencies from conda. As such, I use the setup-miniconda action to create a conda environment and install dependencies.

Unfortunately, that requires specifying the shell to github in order to activate the conda environment:

      - name: Do something
        shell: bash -el {0}
        run: conda info

as far as I can tell however, @actions/exec doesn't support a shell parameter, so the invocation in run.ts here doesn't respect it:

await exec(

A similar issue came up in another action recently, and a proposed solution is here:
aganders3/headless-gui#5

would be great to support a similar shell input here so that we can use this with conda environments

thanks!

@art049
Copy link
Member

art049 commented Apr 14, 2023

Yes, I think it would make complete sense.

As a workaround, maybe something like this could work:

- uses: CodSpeedHQ/action@v1
  run: bash -el -c "conda info"

I'm not sure about the exact command you need to run but it should work with the expected context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants