Keep Render Service Active #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .github/workflows/keep-render-active.yml | |
| name: Keep Render Service Active | |
| on: | |
| schedule: | |
| - cron: '0 0 1 * *' # 每月1号 | |
| workflow_dispatch: # 👈 关键!允许手动触发 | |
| jobs: | |
| keep-alive: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout server branch | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: server # 必须指定分支 | |
| - name: Create empty commit and push | |
| run: | | |
| git config user.name "baiwumm" | |
| git config user.email "me@baiwumm.com" | |
| git commit --allow-empty -m "chore: keep Render service active [skip ci]" | |
| git push origin server |