Skip to content

Commit

Permalink
Adding ruby support.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Mar 3, 2021
1 parent 850b219 commit 22a85f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions actions_includes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,14 @@ def expand_step_includes_script(current_action, out_list, v):

v['run'] = script_data
if script.endswith('.py'):
# Standard shell, no `{0}` needed.
v['shell'] = 'python'
elif script.endswith('.rb'):
# Non-standard shell, `{0}` needed.
v['shell'] = 'ruby {0}'
elif script.endswith('.sh'):
if 'shell' not in v:
# Standard shell, no `{0}` needed.
v['shell'] = 'bash'

expand_step_run(current_action, out_list, v)
Expand Down

0 comments on commit 22a85f2

Please sign in to comment.