Skip to content

janitor: refresh 20261007T131843Z #51

janitor: refresh 20261007T131843Z

janitor: refresh 20261007T131843Z #51

name: janitor ledger to discussions
# Cloud agent sessions can't use GitHub GraphQL. The issue & discussion
# janitor routine pushes ops/*.json here. This workflow applies them with
# the Actions token, then commits a fresh snapshot of every discussion
# (snapshot/) back to this branch through createCommitOnBranch: the repo
# requires signed commits, and GitHub signs API-created commits. Commits
# made with GITHUB_TOKEN don't trigger workflows, so there's no loop. Ops
# are idempotent and tracked in applied.json, so a cancelled run is
# recovered by the next one.
on:
push:
branches: [janitor/ledger]
permissions:
contents: write
discussions: write
concurrency:
group: janitor-ledger
cancel-in-progress: false
jobs:
sync:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: janitor/ledger
persist-credentials: false
- name: Apply ops, snapshot discussions and commit the snapshot
env:
GH_TOKEN: ${{ github.token }}
run: python3 tools/janitor_sync.py