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:
parent
ba102368d3
commit
e97623bbaf
3 changed files with 29 additions and 0 deletions
|
@ -127,6 +127,8 @@ func (sr *stepRun) setupShellCommand(ctx context.Context) (name, script string,
|
|||
runPrepend = "@echo off"
|
||||
case "python":
|
||||
name += ".py"
|
||||
case "node":
|
||||
name += ".js"
|
||||
}
|
||||
|
||||
script = fmt.Sprintf("%s\n%s\n%s", runPrepend, script, runAppend)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue