mirror of
https://github.com/julia-actions/julia-runtest.git
synced 2026-02-12 02:56:55 +08:00
Support prefixes with args (#71)
Supersedes #48 Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com>
This commit is contained in:
@@ -66,8 +66,8 @@ runs:
|
|||||||
julia_cmd=( julia --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'include(joinpath(ENV["GITHUB_ACTION_PATH"], "test_harness.jl"))' )
|
julia_cmd=( julia --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'include(joinpath(ENV["GITHUB_ACTION_PATH"], "test_harness.jl"))' )
|
||||||
|
|
||||||
# Add the prefix in front of the command if there is one
|
# Add the prefix in front of the command if there is one
|
||||||
prefix="${{ inputs.prefix }}"
|
prefix=( ${{ inputs.prefix }} )
|
||||||
[[ -n $prefix ]] && julia_cmd=( "$prefix" "${julia_cmd[@]}" )
|
[[ -n ${prefix[*]} ]] && julia_cmd=( "${prefix[@]}" "${julia_cmd[@]}" )
|
||||||
|
|
||||||
# Run the Julia command
|
# Run the Julia command
|
||||||
"${julia_cmd[@]}"
|
"${julia_cmd[@]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user