From a0bfaee85bfe7e43fad3d06c4b41d5a86eb3772c Mon Sep 17 00:00:00 2001
From: DVKunion <2622100059@qq.com>
Date: Fri, 31 Mar 2023 15:04:01 +0800
Subject: [PATCH] fix: example_windows.yml
---
.github/workflows/example_windows.yml | 2 +-
README.md | 28 +++++++++++++++++++-----
README_EN.md | 31 +++++++++++++++++++++------
action.yml | 4 +++-
check.ps1 | 4 ++--
5 files changed, 53 insertions(+), 16 deletions(-)
mode change 100644 => 100755 check.ps1
diff --git a/.github/workflows/example_windows.yml b/.github/workflows/example_windows.yml
index dc057dc..372e42c 100644
--- a/.github/workflows/example_windows.yml
+++ b/.github/workflows/example_windows.yml
@@ -12,7 +12,7 @@ on:
jobs:
runner:
- runs-on: windows-latest
+ runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: collie
diff --git a/README.md b/README.md
index eaee77f..b70c624 100644
--- a/README.md
+++ b/README.md
@@ -8,9 +8,13 @@
Collie-Trickster 基于 牧云主机助手 (Collie) 实现的Github Action。主要用于更便捷的使用和Debug Github Action。
+目前支持了:
++ linux ci环境 通过 `手动推送`/`HTTP请求触发` 注册到牧云主机助手,并可以通过牧云主机助手卸载来完成ci。
++ windows主机支持(等待牧云开放接口,脚本已支持)
+
## 🧑🤝🧑 友情提示
-**关于风险**
+**# 关于风险**
> 其实大家都知道所谓 "白嫖国外主机" 不过是个噱头 -_-
>
@@ -23,7 +27,7 @@ Collie-Trickster 基于 牧云主机助手 (Collie) 实现的Github Action。主
> 说到底,和大家开了个玩笑,`Collie-Trickster`的目的从一开始就是一个debug工具的定位。
> 任何使用`Collie-Trickster`作恶而导致可能面临的风险,包括github封号的情况,`Collie-Trickster`不承担任何责任。
-**助手限制**
+**# 助手限制**
See More
牧云主机助手目前默认仅免费三台主机,超过三台主机的使用量时,需要切换付费版本。
@@ -31,7 +35,7 @@ Collie-Trickster 基于 牧云主机助手 (Collie) 实现的Github Action。主
See More
CLICK ME
+
CLICK ME
+
+> 注意:这种方式在ci页面会暴露你的牧云助手token信息!请确保不要使用长期token的模式,
+> 重要的事重复一遍!请使用一次性安装的token! 不要使用长期token!
+
每次推送代码才能触发实在太蠢了。当然也十分的不够优雅,需要手动把token放在github secrets中。
在基础用法的基础上,这里给出一份通过`workflow_dispatch` 利用方式:
@@ -131,9 +140,11 @@ jobs:
host_type: ${{ inputs.type }}
```
-使用时,需要你生成一个 [Github Token](https://github.com/settings/tokens/) ,作为认证用;然后将这份`yaml`放在你的仓库`.github/workflows/example.yml`,
+使用时,需要你生成一个 [Github Token](https://github.com/settings/tokens/) ,作为认证用;
+
+然后将这份`yaml`放在你的仓库`.github/workflows/example.yml`,或者直接fork本仓库也可以。
-然后发起http请求, 这里给出一个curl的调用:
+最后发起一个http请求, 这里给出一个curl的调用:
```shell
curl \
@@ -153,6 +164,13 @@ curl \
这样,每发起一次请求,就会执行一次CI。成功上线一台主机。
+> url为 `https://api.github.com/repos/
Get An Free foreign hosts through GitHub Action [doge] p> +
Get An Free foreign hosts through GitHub Action [doge]
-Chinese Documents | English
+Chinese Documents | English
Collie-Trickster introduction
Collie Trickster is based on the MuYun Virtual Machine Assistant (Collie), Github Action implemented. Mainly used for more convenient use and Debug Github Action. +Currently supported: + ++ The Linux ci environment registers with the MuYun virtual machine assistant through `manual push`/`HTTP request trigger`, and can complete ci by uninstalling the MuYun virtual machine assistant. + ++ Windows host support + ## 🧑🤝🧑 Friendly reminder -**About Risk** +**# About Risk** > Actually, everyone knows that the so-called "Get An Free foreign hosts" is just a gimmick -_- > @@ -24,7 +30,7 @@ Collie Trickster is based on the MuYun Virtual Machine Assistant (Collie), Githu > > `Collie Trickster` does not assume any responsibility for any possible risks that may arise from using `Collie Strickster` to commit crimes, including the Github seal.". -**MuYun Virtual Machine Assistant Limit** +**# MuYun Virtual Machine Assistant Limit**