zhizhi/.github/workflows/agent-checkin.yml

27 lines
712 B
YAML

name: 人格体每日签到
on:
schedule:
- cron: '0 2 * * *' # UTC 02:00 = 北京 10:00
workflow_dispatch:
permissions:
contents: write
actions: read
jobs:
checkin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 执行签到任务
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node scripts/agent-checkin.js
- name: 提交签到记录
run: |
git config user.name "铸渊"
git config user.email "zhuyuan@guanghulab.com"
git add .github/persona-brain/checkin-board.json
git commit -m "[AG-ZY] 每日签到记录 $(date +'%Y-%m-%d')" || echo "无变更"
git push