Skip to content

Commit ce47e34

Browse files
committed
feat: add working-directory option for non-root checkouts
1 parent b7fdc6e commit ce47e34

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

action-types.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ inputs:
1111

1212
session-timeout-seconds:
1313
type: integer
14+
15+
working-directory:
16+
type: string

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ inputs:
2020
session-timeout-seconds:
2121
description: "The timeout (in seconds) to use when waiting for a session to be completed"
2222
required: false
23+
working-directory:
24+
description: "The directory in which to look for the Gradle/Maven build files (relative to the workspace root)"
25+
required: false
26+
default: ${{ github.workspace }}
2327

2428
runs:
2529
using: "composite"
@@ -34,7 +38,7 @@ runs:
3438
WRITE_LOG_FILES: ${{ inputs.write-log-files }}
3539
SESSION_TIMEOUT_SECONDS: ${{ inputs.session-timeout-seconds }}
3640
shell: bash
37-
working-directory: ${{ github.workspace }}
41+
working-directory: ${{ inputs.working-directory }}
3842
run: |
3943
# Set up TestLens
4044

0 commit comments

Comments
 (0)