From dcd8c93f225547e5b642398cd36571c77b0078c4 Mon Sep 17 00:00:00 2001 From: AdminWhaleFall Date: Tue, 26 Apr 2022 20:56:47 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E6=B5=8B=E8=AF=95=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=20action=20=E8=BF=90=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/run.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/run.yaml diff --git a/.github/workflows/run.yaml b/.github/workflows/run.yaml new file mode 100644 index 0000000..8f325aa --- /dev/null +++ b/.github/workflows/run.yaml @@ -0,0 +1,31 @@ +name: Run SMSBoom in Action + +# 触发 Action 的条件 +on: + # 定时触发 参考 https://docs.github.com/cn/actions/using-workflows/events-that-trigger-workflows#schedule + # schedule: + # - cron: '30 5 * * 1,3' + # - cron: '30 5 * * 2,4' + # 手动触发 + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + # 签出项目代码 + - uses: actions/checkout@v3 + # 设置 py3.8 环境 + - name: 🚀 Set up Python 3.x + uses: actions/setup-python@v3 + with: + python-version: '3.8' + + - name: 🚀 Run SMSBoom Script + # 此处可以自定义命令行运行参数. + run: | + pip3 install pipenv + pipenv install + pipenv shell + python3 smsboom.py run -p 19820294268 -t 32 \ No newline at end of file