Skip to content

Commit

Permalink
Merge pull request #7212 from gurevichmark/actions6
Browse files Browse the repository at this point in the history
Get GitHub action script directory reference2
  • Loading branch information
gurevichmark committed Jun 30, 2022
2 parents 185982d + dd190a1 commit 07b818e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/xcat_test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: xcat_test
on:
pull_request:
types: [review_requested]
push
jobs:
xcat_pr_test:
runs-on: ubuntu-latest
Expand Down
9 changes: 9 additions & 0 deletions github_action_xcat_test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use JSON;
use URI::Escape;
use LWP::Simple;
use Cwd;

use Term::ANSIColor qw(:constants);
$Term::ANSIColor::AUTORESET = 1;
Expand Down Expand Up @@ -333,6 +334,14 @@ 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";
@output = runcmd("cd $dir");
if($::RUNCMD_RC){
print RED "[MG] cd to $dir ...[Failed]\n";
print "[MG] error message:\n";
print Dumper \@output;
}
foreach my $cmd (@cmds){
print "[install_xcat] running $cmd\n";
@output = runcmd("$cmd");
Expand Down

0 comments on commit 07b818e

Please sign in to comment.