How to use it with other github actions
See original GitHub issueI tried to use this with an other github action that builds and checks sphinx documentation.
https://github.com/marketplace/actions/sphinx-build
Of course it didn’t pick up the activated environment, so the build failed. I can get it working if I run the shell directly with shell: bash -l {0}
.
But the sphinx-build action has some nice features which I like to use.
It does provide a way to run a pre build command. Can that be used to activate the conda-environment?
- uses: ammaraskar/sphinx-action@master
with:
pre-build-command: ..XXXXXX...
I once did something similar in the gitlab ci system where I ran . /opt/conda/etc/profile.d/conda.sh && conda activate sphinx"
to get the environment activated. Could I do something similar here?
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Finding and customizing actions - GitHub Docs
Adding an action from GitHub Marketplace · Navigate to the action you want to use in your workflow. · Under "Installation", click to...
Read more >Reusing workflows - GitHub Docs
You call a reusable workflow by using the uses keyword. Unlike when you are using actions within a workflow, you call reusable workflows...
Read more >GitHub Actions Documentation
Automate, customize, and execute your software development workflows right in your repository with GitHub Actions. You can discover, create, and share ...
Read more >Understanding GitHub Actions
An action is a custom application for the GitHub Actions platform that performs a complex but frequently repeated task. Use an action to...
Read more >Quickstart for GitHub Actions
Creating your first workflow · Create a .github/workflows directory in your repository on GitHub if this directory does not already exist. · In...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@goanpeca Thanks a lot. I had indeed the option of running a pre-command. I will try your suggestion.
@melund if you have the opportunity to run a command I think you can use something like: