使用Github Action定时重启邮件服务」的摘要信息

主要是邮件服务器的容器经常崩溃,所以尝试设置定时任务来解决这个问题。 情景引入 邮件服务器性能羸弱,无法胜任设置定时任务这样的重担,所以只能用一些盘外招试试了。 设置 Action 那么首先,本着轻量化的原则,新建一个仓库拿来干这种事: 然后切到Action页面: 选择新建一个空白模板: 修改Action名称、内容并设置定时,参考我的: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 # This is a basic workflow to help you get started with Actions name: REMX # Controls when the workflow will run on: # Triggers the workflow on push or pull request events but only for the "main" branch push: branches: [ "main" ] schedule: - cron: "0 20 * * *" # Allows you to run this workflow manually from the Actions tab workflow_dispatch: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" build: # T...