mirror of
https://github.com/WhaleFell/SMSBoom.git
synced 2026-02-03 10:23:22 +08:00
✨ feat: 测试使用 action 运行
This commit is contained in:
31
.github/workflows/run.yaml
vendored
Normal file
31
.github/workflows/run.yaml
vendored
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user