mirror of
https://github.com/hex-ci/smzdm_script.git
synced 2026-11-02 21:55:32 +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
|
name: Docker image release
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- "main"
|
|
||||||
paths-ignore:
|
|
||||||
- "**.md"
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -36,13 +31,6 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
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
|
- name: Lower case
|
||||||
id: string
|
id: string
|
||||||
uses: ASzc/change-string-case-action@v2
|
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:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
workflow_run:
|
||||||
|
workflows: ["Docker image release"]
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
|
||||||
# Uncomment below to schedule your job
|
# Uncomment below to schedule your job
|
||||||
# schedule:
|
# schedule:
|
||||||
@@ -18,4 +22,7 @@ jobs:
|
|||||||
SC_KEY: ${{ secrets.SC_KEY }}
|
SC_KEY: ${{ secrets.SC_KEY }}
|
||||||
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
|
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
|
||||||
TG_USER_ID: ${{ secrets.TG_USER_ID }}
|
TG_USER_ID: ${{ secrets.TG_USER_ID }}
|
||||||
|
steps:
|
||||||
|
- name: Working
|
||||||
|
run: |
|
||||||
|
python /smzdm_bot/main.py
|
||||||
Reference in New Issue
Block a user