-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from DVKunion/feat/v1.1.1
feat: v1.1.1
- Loading branch information
Showing
6 changed files
with
207 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# entry | ||
name: example | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
token: | ||
description: 'chaitin rivers token' | ||
required: true | ||
type: | ||
description: 'your host type' | ||
required: true | ||
|
||
jobs: | ||
runner: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: collie | ||
if: ${{ inputs.token != '' && inputs.type != '' }} | ||
uses: dvkunion/CollieTrickster@main | ||
with: | ||
token: ${{ inputs.token }} | ||
host_type: ${{ inputs.type }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# 要监听的进程名 | ||
$processName = "collie.exe" | ||
|
||
# 循环监听进程状态 | ||
while ($true) { | ||
# 检查进程状态 | ||
if (Get-Process $processName -ErrorAction SilentlyContinue) { | ||
Write-Host "Process $processName is running" | ||
} else { | ||
Write-Host "Process $processName is not running, exiting script" | ||
exit 0 | ||
} | ||
# 等待 3 秒后再次检查进程状态 | ||
Start-Sleep -Seconds 3 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# 要监听的进程名 | ||
PROCESS_NAME="collie" | ||
|
||
# 循环监听进程状态 | ||
while true | ||
do | ||
# 检查进程状态 | ||
if pgrep "$PROCESS_NAME" >/dev/null 2>&1; then | ||
echo "Process $PROCESS_NAME is running" | ||
else | ||
echo "Process $PROCESS_NAME is not running, exiting script" | ||
exit 0 | ||
fi | ||
# 等待 3 秒后再次检查进程状态 | ||
sleep 3 | ||
done |