Aiven Console
这个免费MySQL,24小时没有库内容变化会自动关机,简单做了个数据库操作的保活部署到GitHub上,workflow自动保活(把每次 保活记录添加到数据库表bh中):
name: Database Keep-Alive Ping and Log
on:
schedule:
- cron: '43 * * * *' # 设定你的循环保活时间,我设置的43分钟
workflow_dispatch:
jobs:
ping-and-log:
runs-on: ubuntu-latest
steps:
- name: Install MySQL Client
run: sudo apt-get update && sudo apt-get install -y mysql-client
- name: Check Table,