Skip to content

Commit 419c21f

Browse files
author
Greg Bowler
committed
Allow specifying a different working directory
1 parent d91ccc3 commit 419c21f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ inputs:
5151
description: The domain to gather SSH public keys for (automatic for github.com, gitlab.com, bitbucket.org)
5252
required: false
5353

54+
working_dir:
55+
description: Use the given directory as working directory
56+
required: false
57+
5458
outputs:
5559
time:
5660
description: 'The time the action was run'
@@ -69,6 +73,7 @@ runs:
6973
action_ssh_key: ${{ inputs.ssh_key }}
7074
action_ssh_key_pub: ${{ inputs.ssh_key_pub }}
7175
action_ssh_domain: ${{ inputs.ssh_domain }}
76+
action_working_dir: ${{ inputs.working_dir }}
7277

7378
branding:
7479
icon: 'package'

entrypoint

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ then
3131
command_string="$command_string $action_command"
3232
fi
3333

34+
if [ -n "$action_working_dir" ]
35+
then
36+
command_string="$command string --working-dir=$action_working_dir"
37+
fi
38+
3439
if [ ! -n "$action_only_args" ]
3540
then
3641
if [ "$action_command" = "install" ]

0 commit comments

Comments
 (0)