hkuds--openharness
54 行
1.3 KiB
YAML
54 行
1.3 KiB
YAML
name: Autopilot Run Next
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 */2 * * *"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
issues: write
|
|
pull-requests: write
|
|
|
|
concurrency:
|
|
group: autopilot-run-next
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
run-next:
|
|
runs-on: self-hosted
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
clean: false
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Set up uv
|
|
uses: astral-sh/setup-uv@v6
|
|
with:
|
|
enable-cache: true
|
|
|
|
- name: Install dependencies
|
|
run: uv sync --extra dev
|
|
|
|
- name: Execute autopilot tick
|
|
run: uv run python -m openharness autopilot tick --cwd "$GITHUB_WORKSPACE"
|
|
|
|
- name: Export dashboard
|
|
run: uv run python -m openharness autopilot export-dashboard --cwd "$GITHUB_WORKSPACE"
|
|
|
|
- name: Commit dashboard updates
|
|
run: |
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
git add docs/autopilot
|
|
git diff --cached --quiet && exit 0
|
|
git commit -m "autopilot: refresh dashboard after run"
|
|
git push
|