Skip to content

Commit

Permalink
Kick off secondary run to test workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
davelcpanelnet committed Sep 11, 2024
1 parent cbc95e7 commit 969bded
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/openstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ jobs:
chmod -v +x /scripts/elevate-cpanel
/usr/local/cpanel/cpkeyclt
/scripts/elevate-cpanel --non-interactive --start &
/scripts/elevate-cpanel --log &
/scripts/elevate-cpanel --log | awk '/Rebooting into stage 2 of 5/ { print | "exit" }'
REGEX="Starting stage 1 of 5" RETVAL=1 /scripts/reboot_watch
wait_for_stage_2_reboot:
runs-on: self-hosted
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/openstack/reboot_watch
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ sub _check_elevate_log_for_regex {
while ( defined( $line = $file->read ) ) {
if ( grep { /$REGEX/m } $line ) {
_success_message();
exit 0;
}
$RETRIES++;
}
Expand All @@ -43,5 +42,5 @@ sub _check_elevate_log_for_regex {
sub _success_message {
my $time = POSIX::strftime( "%Y-%m-%d %H:%M:%S", localtime );
print "## [$time] [INFO]: SUCCESS: Reboot regex ( $REGEX ) found in /var/log/elevate-cpanel.log ##\n";
return 0;
exit 0;
}

0 comments on commit 969bded

Please sign in to comment.