Skip to content

Commit 30a627f

Browse files
committed
Add extra parameter
1 parent 21657b5 commit 30a627f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

action.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ inputs:
2727
n:
2828
description: 'specify tests by their numbers (e.g., "1-5,10,13")'
2929
required: false
30-
# TODO: EXTRA, -j
30+
extra:
31+
description: 'extra arguments for the given CWL runner'
32+
required: false
33+
# TODO: -j
3134
outputs:
3235
badgedir:
3336
description: 'The directory name that stores conformance badges'
@@ -87,7 +90,11 @@ runs:
8790
nopt="-n=${{ inputs.n }}"
8891
fi
8992
90-
./run_test.sh RUNNER=${{inputs.runner}} --badgedir=$basedir/badges --junit-xml=$basedir/junit.xml --timeout=${{inputs.timeout}} $tagopt $nopt || true
93+
if [ -n "${{ inputs.extra }}" ]; then
94+
extraopt="EXTRA=${{ inputs.extra }}"
95+
fi
96+
97+
./run_test.sh RUNNER=${{inputs.runner}} --badgedir=$basedir/badges --junit-xml=$basedir/junit.xml --timeout=${{inputs.timeout}} $tagopt $nopt $extraopt || true
9198
echo "::set-output name=badgedir::$GITHUB_WORKSPACE/cwl-run-conformance-${{ inputs.cwlVersion }}/badges"
9299
echo "::set-output name=result::$GITHUB_WORKSPACE/cwl-run-conformance-${{ inputs.cwlVersion }}/junit.xml"
93100
env:

0 commit comments

Comments
 (0)