mirror of
https://github.com/hex-ci/smzdm_script.git
synced 2026-02-03 02:24:41 +08:00
Update actions
This commit is contained in:
12
.github/workflows/docker-builder.yml
vendored
12
.github/workflows/docker-builder.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user