Compare commits

...

1 Commits

Author SHA1 Message Date
coah
5e283f768d ci: stop the separate README progress commit
Landings now write the README progress table inside their own commit,
so the progress job only rebuilds and publishes the numbers to the job
summary instead of pushing a second docs commit to main.
2026-10-02 15:51:07 +00:00

View File

@@ -2,6 +2,8 @@ name: README progress
# runs on the self-hosted runner on cole's server so it doesn't use hosted minutes. # runs on the self-hosted runner on cole's server so it doesn't use hosted minutes.
# only push/schedule/manual triggers, never pull_request, so fork PRs can't reach this machine. # only push/schedule/manual triggers, never pull_request, so fork PRs can't reach this machine.
# README progress is written inside each landing commit by the orchestrator, so this job never commits;
# it only rebuilds and publishes the current numbers to the job summary.
on: on:
push: push:
branches: [main] branches: [main]
@@ -15,7 +17,7 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
permissions: permissions:
contents: write contents: read
jobs: jobs:
progress: progress:
@@ -48,15 +50,8 @@ jobs:
- name: Report - name: Report
run: build/tools/objdiff-cli report generate -p . -o build/43U/report.json -f json run: build/tools/objdiff-cli report generate -p . -o build/43U/report.json -f json
- name: Update README - name: Summary
run: python3 tools/update_readme_progress.py build/43U/report.json README.md "$GITHUB_SHA"
- name: Commit
run: | run: |
if git diff --quiet README.md; then exit 0; fi python3 tools/update_readme_progress.py build/43U/report.json README.md "$GITHUB_SHA"
git config user.name "github-actions[bot]" sed -n '/progress:start/,/progress:end/p' README.md >> "$GITHUB_STEP_SUMMARY"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git checkout -- README.md
git add README.md
git commit -m "docs: update progress [skip ci]"
git pull --rebase origin main || { git rebase --abort; echo "main moved, next run will update"; exit 0; }
git push origin HEAD:main