mirror of
https://github.com/hex-ci/smzdm_script.git
synced 2026-02-04 02:54:58 +08:00
39 lines
832 B
YAML
39 lines
832 B
YAML
name: "SMZDM Check-in Bot"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
# Uncomment below to schedule your job
|
|
# schedule:
|
|
# - cron: "0 18 * * *"
|
|
|
|
env:
|
|
TZ: Asia/Shanghai
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: 3.9
|
|
|
|
- name: Install requirements
|
|
run: |
|
|
pip install -r requirements.txt
|
|
|
|
- name: Working
|
|
env:
|
|
SMZDM_COOKIE: ${{ secrets.SMZDM_COOKIE }}
|
|
PUSH_PLUS_TOKEN: ${{ secrets.PUSH_PLUS_TOKEN }}
|
|
SC_KEY: ${{ secrets.SC_KEY }}
|
|
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
|
|
TG_USER_ID: ${{ secrets.TG_USER_ID }}
|
|
run: python main.py
|