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

View File

@@ -1,10 +1,5 @@
name: Docker image release
on:
push:
branches:
- "main"
paths-ignore:
- "**.md"
workflow_dispatch:
jobs:
@@ -36,13 +31,6 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Lower case
id: string
uses: ASzc/change-string-case-action@v2

View File

@@ -1,7 +1,11 @@
name: "SMZDM Check-in Bot by Docker"
name: SMZDM Check-in Docker Bot
on:
workflow_dispatch:
workflow_run:
workflows: ["Docker image release"]
types:
- completed
# Uncomment below to schedule your job
# schedule:
@@ -18,4 +22,7 @@ jobs:
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