Update actions

This commit is contained in:
LuckyHunter
2022-10-21 10:52:45 +08:00
parent e2fb056be3
commit f891b71f8b
2 changed files with 9 additions and 14 deletions

28
.github/workflows/docker-run.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: SMZDM Check-in Docker Bot
on:
workflow_dispatch:
workflow_run:
workflows: ["Docker image release"]
types:
- completed
# Uncomment below to schedule your job
# schedule:
# - cron: "0 18 * * *"
jobs:
container-test-job:
runs-on: ubuntu-latest
container:
image: enwaiax/smzdm_bot
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 }}
steps:
- name: Working
run: |
python /smzdm_bot/main.py