Repository navigation
janitor: run 20261004T132145Z #46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |