Skip to content

Commit 53231ce

Browse files
authored
Support prefixes with args
Same as julia-actions/julia-runtest#71.
1 parent 22ecac6 commit 53231ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ runs:
3030
julia_cmd=( julia --color=yes --code-coverage --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' )
3131
3232
# Add the prefix in front of the command if there is one
33-
prefix="${{ inputs.prefix }}"
34-
[[ -n $prefix ]] && julia_cmd=( "$prefix" "${julia_cmd[@]}" )
33+
prefix=( ${{ inputs.prefix }} )
34+
[[ -n ${prefix[*]} ]] && julia_cmd=( "${prefix[@]}" "${julia_cmd[@]}" )
3535
3636
# Run the Julia command
3737
"${julia_cmd[@]}"

0 commit comments

Comments
 (0)