Skip to content

Commit d75c4a0

Browse files
committed
Fix the inputs-path
Signed-off-by: tdruez <[email protected]>
1 parent 93cf969 commit d75c4a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ inputs:
99
default: "json xlsx spdx cyclonedx"
1010
inputs-path:
1111
description: "Relative path within the $GITHUB_WORKSPACE for pipeline inputs"
12-
default: "${{ github.workspace }}/scancode-inputs"
12+
default: "scancode-inputs"
1313
input-urls:
1414
description: "Provide one or more URLs to download for the pipeline run execution."
1515
required: false
@@ -119,6 +119,7 @@ runs:
119119
shell: bash
120120
run: |
121121
SOURCE_PATH="${{ inputs.inputs-path }}"
122+
[[ "$SOURCE_PATH" != /* ]] && SOURCE_PATH="${{ github.workspace }}/$SOURCE_PATH"
122123
DESTINATION_PATH="${{ env.PROJECT_WORK_DIRECTORY }}/input/"
123124
mkdir -p "$DESTINATION_PATH"
124125

0 commit comments

Comments
 (0)