clawsweeper/.github/workflows/github-activity.yml
2026-05-02 02:04:39 +01:00

86 lines
1.9 KiB
YAML

name: github activity to openclaw
on:
repository_dispatch:
types:
- github_activity
issues:
types:
- opened
- reopened
- edited
- closed
- labeled
- unlabeled
- assigned
- unassigned
issue_comment:
types:
- created
- edited
pull_request_target:
types:
- opened
- reopened
- synchronize
- ready_for_review
- converted_to_draft
- edited
- closed
- labeled
- unlabeled
pull_request_review:
types:
- submitted
- edited
- dismissed
pull_request_review_comment:
types:
- created
- edited
workflow_run:
workflows:
- sweep
- repair cluster worker
- repair publish cluster results
- commit review
types:
- completed
permissions:
contents: read
actions: read
issues: read
pull-requests: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
concurrency:
group: github-activity-${{ github.event_name }}-${{ github.run_id }}
cancel-in-progress: false
jobs:
notify:
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 10
steps:
- uses: actions/checkout@v5
with:
filter: blob:none
persist-credentials: false
- uses: ./.github/actions/setup-pnpm
with:
build-script: build:repair
- name: Feed activity to OpenClaw
env:
CLAWSWEEPER_OPENCLAW_HOOK_URL: ${{ secrets.CLAWSWEEPER_OPENCLAW_HOOK_URL }}
CLAWSWEEPER_OPENCLAW_HOOK_TOKEN: ${{ secrets.CLAWSWEEPER_OPENCLAW_HOOK_TOKEN }}
CLAWSWEEPER_OPENCLAW_AGENT_ID: ${{ vars.CLAWSWEEPER_OPENCLAW_AGENT_ID || 'clawsweeper' }}
CLAWSWEEPER_DISCORD_TARGET: ${{ vars.CLAWSWEEPER_DISCORD_TARGET }}
run: |
set -euo pipefail
pnpm run repair:notify-github-activity -- --write-report