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

27 lines
757 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 📋 Agent Checkin Template
# NOTE: 此文件由 Agent PR 创建可能需要手动合并SkyEye R5 限制)
name: 📋 Agent Checkin Template
on:
workflow_call:
inputs:
agent_id:
required: true
type: string
script_path:
required: true
type: string
permissions:
contents: write
jobs:
agent-run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkin
run: node scripts/tianyen/agent-checkin-module.js checkin ${{ inputs.agent_id }}
- name: Execute
run: node ${{ inputs.script_path }}
- name: Checkout
if: always()
run: node scripts/tianyen/agent-checkin-module.js checkout ${{ inputs.agent_id }} ${{ job.status }}