name: 自动关机
on:
workflow_dispatch:
schedule:
- cron: "0 13 * * *"
jobs:
task:
runs-on: windows-latest
permissions:
run-executable: all
steps:
- name: Show Notice
uses: classisland/show-notice@v2.0.2.0
with:
context:"要开始(关机)了哟~"
- name: Run shutdown
run: shutdown -s -t 60
非常好Github Action,使我的脑子旋转