Skip to content

Commit

Permalink
Merge pull request #7213 from gurevichmark/actions7
Browse files Browse the repository at this point in the history
Get GitHub action script directory reference3
  • Loading branch information
besawn committed Jun 30, 2022
2 parents 07b818e + c71df6f commit a5944e6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions github_action_xcat_test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,16 @@ 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] Current working dir $dir";
my $dir = cwd();
print "[MG] {1} Current working dir $dir\n";
@output = runcmd("cd $dir");
if($::RUNCMD_RC){
print RED "[MG] cd to $dir ...[Failed]\n";
print "[MG] error message:\n";
print Dumper \@output;
}
$dir = "/home/runner/work";
print "[MG] {2} Current working dir $dir\n";
@output = runcmd("cd $dir");
if($::RUNCMD_RC){
print RED "[MG] cd to $dir ...[Failed]\n";
Expand Down

0 comments on commit a5944e6

Please sign in to comment.