Skip to content

Commit 09e4bd3

Browse files
committed
Add test-directory input to prepare-test action
1 parent 8362ece commit 09e4bd3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/actions/prepare-test/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ inputs:
1212
description: "If true, we setup kotlin"
1313
default: 'true'
1414
required: true
15+
test-directory:
16+
description: "The directory containing the test project that should be moved to the workspace root"
17+
required: false
18+
default: "tests/multi-language-repo"
1519
outputs:
1620
tools-url:
1721
description: "The value that should be passed as the 'tools' input of the 'init' step."
@@ -21,10 +25,12 @@ runs:
2125
steps:
2226
- name: Move codeql-action
2327
shell: bash
28+
env:
29+
TEST_DIR: ${{ inputs.test-directory }}
2430
run: |
2531
mkdir ../action
2632
mv * .github ../action/
27-
mv ../action/tests/multi-language-repo/{*,.github} .
33+
mv ../action/$TEST_DIR/{*,.github} .
2834
mv ../action/.github/workflows .github
2935
- id: get-url
3036
name: Determine URL

0 commit comments

Comments
 (0)