1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-06 17:40:58 +00:00

feat: add node as shell type

This commit is contained in:
Maxim Slipenko 2025-04-18 18:14:21 +03:00
parent ba102368d3
commit e97623bbaf
3 changed files with 29 additions and 0 deletions

View file

@ -639,6 +639,8 @@ func (s *Step) ShellCommand() string {
shellCommand = "cmd /D /E:ON /V:OFF /S /C \"CALL \"{0}\"\""
case "powershell":
shellCommand = "powershell -command . '{0}'"
case "node":
shellCommand = "node {0}"
default:
shellCommand = s.Shell
}