Skip to content

Commit

Permalink
fix: Make workflow status update script generalizable to other repos
Browse files Browse the repository at this point in the history
  • Loading branch information
abensonca committed Nov 14, 2023
1 parent f98787d commit 16fdf3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/aux/workflowStatus.pl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
use JSON;
use Data::Dumper;

my $repo = "galacticus";

my @workflows =
(
{
Expand Down Expand Up @@ -37,7 +39,7 @@
last
unless ( $status eq ":question:" );
}
system("curl -X POST -H 'Content-type: application/json' --data '{\"repo\":\"galacticus\",\"workflow\":\"".$workflow->{'name'}."\",\"status\":\"".$status."\",\"url\":\"https://github.com/galacticusorg/galacticus/actions/workflows/".$workflow->{'file'}."\"}' ".$ENV{'SLACK_WEBHOOK_STATUS_URL'});
system("curl -X POST -H 'Content-type: application/json' --data '{\"repo\":\"".$repo."\",\"workflow\":\"".$workflow->{'name'}."\",\"status\":\"".$status."\",\"url\":\"https://github.com/galacticusorg/".$repo."/actions/workflows/".$workflow->{'file'}."\"}' ".$ENV{'SLACK_WEBHOOK_STATUS_URL'});

}

Expand Down

0 comments on commit 16fdf3b

Please sign in to comment.