Default shell, and option to select a different shell
See original GitHub issueIt would be very useful, in order to convert easily a “normal” command if a shell parameter was supported, to change the shell executing the command.
See: https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
Also, from what I understand, on windows runners, the shell used is cmd, since the only way I could find to set a comment was using rem.
The one used by default from normal actions is bash, I think it would be great if the action default was the same.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Change my default shell in Linux using chsh - nixCraft
First, find out the available shells on your Linux box, run cat /etc/shells · Type chsh and press Enter key · You need...
Read more >3 Ways to Change a Users Default Shell in Linux - Tecmint
In this article, we will describe 3 different ways to change a users default shell in Linux using some commandline tools such as...
Read more >How to Change Shell in Linux
This quick tutorial shows how to check the running shell, available shell in the system and how to change the default shell in...
Read more >How To Change Default Shell In Linux - GeeksforGeeks
In most Linux systems, the default shell is bash but we can change that to any other shell-like zsh, fish, sh, and any...
Read more >How to Change your Shell
Answer: The chsh command changes the login shell of your username. When altering a login shell, the chsh command displays the current login...
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 Free
Top 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

Sorry, I just double checked, I was wrong, the default on windows is
powershell, notbash.Here is the simplest example I could imagine
Thanks to the contribution of @isaacrlevin, an alternate shell can now be specified with this action. Example: