2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-01 10:25:33 +00:00

Get GitHub action script directory reference5

This commit is contained in:
Mark Gurevich
2022-06-30 10:51:59 -04:00
parent 79f4d04277
commit 635fd0b0be

View File

@ -41,6 +41,7 @@ sub runcmd
my $rc = 0;
$::RUNCMD_RC = 0;
my $outref = [];
print "[[MG]] About to execute $cmd";
@$outref = `$cmd 2>&1`;
if ($?)
{
@ -351,10 +352,17 @@ sub install_xcat{
print Dumper \@output;
}
@output = runcmd("env");
print "[MG] running env\n";
print "[MG] {3} running env\n";
print "[MG] env output:\n";
print Dumper \@output;
my $workspace = $ENV{RUNNER_WORKSPACE};
@output = runcmd("cd $workspace");
print "[MG] {4} running cd $workspace\n";
print "[MG] cd output:\n";
print Dumper \@output;
print "[MG] RUNNER_WORKSPACE=$workspace\n";
foreach my $cmd (@cmds){
print "[install_xcat] running $cmd\n";
@output = runcmd("$cmd");