-
In short, the ability to write actions using shell script as well as todays node and docker. Why? The containers that runs the actions has a lot installed that could very well be used in small shell scripted actions. That way the actions would be fast as they would need no download time. Also I think this would be easier, or a good alternative, to work with than the node type. I find the commiting of the node_modules a bit cumbersome and makes the repos bloated. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
Hi @judoole, Thanks for this feedback! We’re always working to improve GitHub and the GitHub Community Forum, and we consider every suggestion we receive. I’ve logged your feature request in our internal feature request list. Though I can’t guarantee anything or share a timeline for this, I can tell you that it’s been shared with the appropriate teams for consideration. Cheers! |
Beta Was this translation helpful? Give feedback.
-
You can use a packager for this. E.g.: https://github.com/1138-4EB/issue-runner/blob/master/webpack.config.js |
Beta Was this translation helpful? Give feedback.
-
Likewise, lots of hoops to jump through just to run some simple cleanup scripts. |
Beta Was this translation helpful? Give feedback.
-
I wrote my first action which boils down to shelling out from node to a bash script. Lots of hoops to jump through, and even more if I wanted to use the core modules (setting up a build step)! https://github.com/bcomnes/cleanup-xvfb if anyone is curious. Overall though, I’m loving actions. It seems as if shelling out from node seems to work, a script entrypoint could easily be exposed in the
|
Beta Was this translation helpful? Give feedback.
-
Very much agree with this. I would also like to see other action runners like Python, for example. There doesn’t even need to be a toolkit for these other languages. Someone would probably create one using the javascript actions/toolkit as a reference implementation. I would just like to be able to say this in action.yml:
Also, one of the issues right now is that container actions only work on linux VMs. The only option for a multi-platform action is javascript. |
Beta Was this translation helpful? Give feedback.
-
I was also wondering the same thing. The ability to build simple shell based actions would be great, and the ability to build actions in Ruby would be awesome. |
Beta Was this translation helpful? Give feedback.
-
If anyone is interested, I have created an easy workaround until GitHub Actions provide support for simple shell actions. The idea is this:
This is the .github/remote-run script (should have the executable bit on):
Here is a sample step:
Here is the proof of concept and more details: |
Beta Was this translation helpful? Give feedback.
-
Guess this is now solved with https://docs.github.com/en/actions/creating-actions/creating-a-composite-run-steps-action |
Beta Was this translation helpful? Give feedback.
Guess this is now solved with https://docs.github.com/en/actions/creating-actions/creating-a-composite-run-steps-action