lean4-htt/.github/workflows
Kim Morrison 6ca23a7b8b
fix: nightly revision date logic and mathlib trigger auth (#12463)
This PR fixes two issues discovered during the first test of the revised
nightly release workflow
(https://github.com/leanprover/lean4/pull/12461):

**1. Date logic:** The `workflow_dispatch` path used `date -u +%F`
(current UTC date) to find the base nightly to revise. If the most
recent nightly was from yesterday (e.g. `nightly-2026-02-12`) but UTC
has rolled over to Feb 13, the code would look for `nightly-2026-02-13`,
not find it, and create a fresh nightly instead of a revision. Now finds
the latest `nightly-*` tag via `sort -rV` and creates a revision of
that.

**2. Mathlib trigger:** The "Update toolchain on mathlib4's
nightly-testing branch" step was broken in two ways:
- Workflow renamed: `nightly_bump_toolchain.yml` →
`nightly_bump_and_merge.yml` (leanprover-community/mathlib4#34827)
- `MATHLIB4_BOT` PAT expired after mathlib migrated to GitHub Apps
(leanprover-community/mathlib4#34751)
- Replace with `actions/create-github-app-token` using the
`mathlib-nightly-testing` app, matching the pattern used in mathlib4's
own workflows.

🤖 Prepared with Claude Code

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 06:03:15 +00:00
..
actionlint.yml chore: CI: bump actions/checkout from 5 to 6 (#11459) 2026-01-09 07:43:13 +00:00
awaiting-manual.yml chore: CI: bump actions/github-script from 7 to 8 (#10648) 2025-10-07 11:41:04 +00:00
awaiting-mathlib.yml chore: CI: bump actions/github-script from 7 to 8 (#10648) 2025-10-07 11:41:04 +00:00
backport.yml chore: CI: add backport action 2023-09-25 11:33:14 +02:00
build-template.yml chore: CI: bump actions/cache from 4 to 5 (#11862) 2026-02-03 12:37:56 +00:00
check-prelude.yml chore: CI: bump actions/checkout from 5 to 6 (#11459) 2026-01-09 07:43:13 +00:00
check-stage0.yml chore: CI: bump actions/checkout from 5 to 6 (#11459) 2026-01-09 07:43:13 +00:00
check-stdlib-flags.yml chore: ci: check for changes to src/stdlib_flags.h (#11679) 2025-12-15 07:17:12 +00:00
ci.yml fix: nightly revision date logic and mathlib trigger auth (#12463) 2026-02-13 06:03:15 +00:00
copyright-header.yml chore: CI: bump actions/checkout from 5 to 6 (#11459) 2026-01-09 07:43:13 +00:00
grove.yml chore: ci: bump grove-action to v0.5 (#11559) 2025-12-09 10:33:31 +00:00
jira.yml chore: CI: Jira sync 2024-07-24 19:52:55 +02:00
labels-from-comments.yml chore: CI: bump actions/github-script from 7 to 8 (#10648) 2025-10-07 11:41:04 +00:00
pr-body.yml chore: CI: bump actions/github-script from 7 to 8 (#10648) 2025-10-07 11:41:04 +00:00
pr-release.yml chore: revert "chore: CI: avoid fetching full repo in PR Release (#12309)" 2026-02-09 13:12:35 +00:00
pr-title.yml chore: adjust pr-title check to enforce capitalization (#11033) 2025-10-31 07:23:25 +00:00
restart-on-label.yml chore: restart-on-label: Also filter by commit SHA (#5099) 2024-08-20 07:45:43 +00:00
stale.yml chore: CI: bump actions/stale from 9 to 10 (#10647) 2025-10-07 11:41:31 +00:00
update-stage0.yml chore: CI: bump actions/cache from 4 to 5 (#11862) 2026-02-03 12:37:56 +00:00