mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-04-29 13:09:51 -05:00
workflows enhanced MySQL check service status step
This commit is contained in:
@@ -169,6 +169,8 @@ jobs:
|
||||
|
||||
- name: MySQL check service status
|
||||
run: |
|
||||
$serviceName = 'MySQL'
|
||||
|
||||
Write-Output '::group::Get-Service'
|
||||
$mysqlService = Get-Service MySQL
|
||||
Write-Output $mysqlService
|
||||
@@ -176,7 +178,7 @@ jobs:
|
||||
|
||||
Write-Output '::group::Service running check'
|
||||
$mysqlService.status.ToString() -ceq 'Running' -or `
|
||||
$(throw 'MySQL service is not running') > $null
|
||||
$(throw "$serviceName service is not running") > $null
|
||||
Write-Output '::endgroup::'
|
||||
|
||||
Write-Output '::group::Ping'
|
||||
|
||||
@@ -153,6 +153,8 @@ jobs:
|
||||
|
||||
- name: MySQL check service status
|
||||
run: |
|
||||
$serviceName = 'MySQL'
|
||||
|
||||
Write-Output '::group::Get-Service'
|
||||
$mysqlService = Get-Service MySQL
|
||||
Write-Output $mysqlService
|
||||
@@ -160,7 +162,7 @@ jobs:
|
||||
|
||||
Write-Output '::group::Service running check'
|
||||
$mysqlService.status.ToString() -ceq 'Running' -or `
|
||||
$(throw 'MySQL service is not running') > $null
|
||||
$(throw "$serviceName service is not running") > $null
|
||||
Write-Output '::endgroup::'
|
||||
|
||||
Write-Output '::group::Ping'
|
||||
|
||||
@@ -169,6 +169,8 @@ jobs:
|
||||
|
||||
- name: MySQL check service status
|
||||
run: |
|
||||
$serviceName = 'MySQL'
|
||||
|
||||
Write-Output '::group::Get-Service'
|
||||
$mysqlService = Get-Service MySQL
|
||||
Write-Output $mysqlService
|
||||
@@ -176,7 +178,7 @@ jobs:
|
||||
|
||||
Write-Output '::group::Service running check'
|
||||
$mysqlService.status.ToString() -ceq 'Running' -or `
|
||||
$(throw 'MySQL service is not running') > $null
|
||||
$(throw "$serviceName service is not running") > $null
|
||||
Write-Output '::endgroup::'
|
||||
|
||||
Write-Output '::group::Ping'
|
||||
|
||||
@@ -187,6 +187,8 @@ jobs:
|
||||
|
||||
- name: MySQL check service status
|
||||
run: |
|
||||
$serviceName = 'MySQL'
|
||||
|
||||
Write-Output '::group::Get-Service'
|
||||
$mysqlService = Get-Service MySQL
|
||||
Write-Output $mysqlService
|
||||
@@ -194,7 +196,7 @@ jobs:
|
||||
|
||||
Write-Output '::group::Service running check'
|
||||
$mysqlService.status.ToString() -ceq 'Running' -or `
|
||||
$(throw 'MySQL service is not running') > $null
|
||||
$(throw "$serviceName service is not running") > $null
|
||||
Write-Output '::endgroup::'
|
||||
|
||||
Write-Output '::group::Ping'
|
||||
|
||||
Reference in New Issue
Block a user