File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 88
88
89
89
# https://github.com/JuliaVersionControl/Git.jl/issues/51
90
90
@testset " OpenSSH integration" begin
91
- is_ci = parse (Bool, strip (get (ENV , " CI" , " false" )))
92
- is_gha = parse (Bool, strip (get (ENV , " GITHUB_ACTIONS" , " false" )))
93
- ssh_privkey = get (ENV , " CI_READONLY_DEPLOYKEY_FOR_CI_TESTSUITE_PRIVATEKEY" , nothing )
94
- if is_ci && is_gha && ! isnothing (ssh_privkey)
95
- @info " This is GitHub Actions CI, so running the OpenSSH test..."
91
+ ssh_privkey = get (ENV , " CI_READONLY_DEPLOYKEY_FOR_CI_TESTSUITE_PRIVATEKEY" , " " )
92
+ if ! isempty (ssh_privkey)
93
+ @info " CI private key available, so running the OpenSSH test..."
96
94
mktempdir () do sshprivkeydir
97
95
privkey_filepath = joinpath (sshprivkeydir, " my_private_key" )
98
96
open (privkey_filepath, " w" ) do io
You can’t perform that action at this time.
0 commit comments