2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

Get GitHub action script directory reference8

This commit is contained in:
Mark Gurevich 2022-06-30 12:16:17 -04:00
parent 21f37d53c5
commit 838f128e9e

View File

@ -334,22 +334,10 @@ sub install_xcat{
"sudo wget -q -O - \"http://xcat.org/files/xcat/repos/apt/apt.key\" | sudo apt-key add -",
"sudo apt-get -qq --allow-insecure-repositories update");
my @output;
my $dir = cwd();
print "[MG] {1} Current working dir $dir\n";
$dir = "/home/runner/work";
print "[MG] {2} Current working dir $dir\n";
chdir $dir;
print getcwd();
system 'pwd';
#@output = runcmd("env");
#print "[MG] {3} running env\n";
#print "[MG] env output:\n";
#print Dumper \@output;
my $workspace = $ENV{RUNNER_WORKSPACE};
print "[MG] {4} RUNNER_WORKSPACE running chdir $workspace\n";
chdir $workspace;
chdir $ENV{RUNNER_WORKSPACE};;
print "[MG] getcwd()";
print getcwd();
print "[MG] system pwd";
system 'pwd';
foreach my $cmd (@cmds){