Skip to content

Commit ade3c8b

Browse files
committed
Action: Handle relativ paths
1 parent 63179bc commit ade3c8b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

action.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,20 @@ runs:
8080
8181
cd "$GITHUB_ACTION_PATH"
8282
83+
if [[ ! "${{ inputs.cwd }}" = /* ]]; then
84+
ARGS_CWD="$GITHUB_WORKSPACE/${{ inputs.cwd }}"
85+
else
86+
ARGS_CWD="${{ inputs.cwd }}"
87+
fi
88+
8389
ARGS=(
8490
--executable="${{ inputs.executable }}"
8591
--strictness="${{ inputs.strictness }}"
8692
--max-num-tests="${{ inputs.max_num_tests }}"
8793
--reference-source="${{ inputs.reference_source }}"
8894
--num-threads="${{ inputs.num_threads }}"
8995
--allow-extra-iterations="${{ inputs.allow_extra_iterations }}"
90-
--cwd="${{ inputs.cwd }}"
96+
--cwd="$ARGS_CWD"
9197
)
9298
9399
if [ "${{ inputs.valgrind }}" = "true" ]; then

0 commit comments

Comments
 (0)