Skip to content

agent-automations

agent-automations #297

name: agent-automations
on:
schedule:
- cron: '13 */2 * * *'
- cron: '15 7 * * *'
- cron: '45 6 * * 1'
workflow_dispatch:
inputs:
job:
description: "pr-health | digest | random-bug"
required: true
default: "pr-health"
permissions:
contents: read
pull-requests: read
jobs:
pr-health:
if: >-
github.event_name == 'workflow_dispatch' && github.event.inputs.job == 'pr-health' ||
github.event_name == 'schedule' && github.event.schedule == '13 */2 * * *'
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: PR mergeability health
env:
GH_TOKEN: ${{ github.token }}
run: scripts/agent-harness/pr-health.sh
digest:
if: >-
github.event_name == 'workflow_dispatch' && github.event.inputs.job == 'digest' ||
github.event_name == 'schedule' && github.event.schedule == '15 7 * * *'
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Build daily digest
run: |
scripts/agent-harness/merged-digest.sh --since "24 hours ago" --output digest.md
cat digest.md >> "$GITHUB_STEP_SUMMARY"
- name: Upload digest artifact
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: agent-digest
path: digest.md
random-bug:
if: >-
github.event_name == 'workflow_dispatch' && github.event.inputs.job == 'random-bug' ||
github.event_name == 'schedule' && github.event.schedule == '45 6 * * 1'
runs-on: ubuntu-24.04
timeout-minutes: 45
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version: '1.25.x'
- name: Random latent bug scan
run: scripts/agent-harness/random-bug-scan.sh --count 2