Skip to content

fix: nightly revision date logic and mathlib trigger auth#12463

Merged
kim-em merged 1 commit intomasterfrom
nightly-rev-followup
Feb 13, 2026
Merged

fix: nightly revision date logic and mathlib trigger auth#12463
kim-em merged 1 commit intomasterfrom
nightly-rev-followup

Conversation

@kim-em
Copy link
Collaborator

@kim-em kim-em commented Feb 13, 2026

This PR fixes two issues discovered during the first test of the revised nightly release workflow (#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:

🤖 Prepared with Claude Code

This PR fixes two issues with the nightly release workflow:

1. The `workflow_dispatch` path used `date -u +%F` (current UTC date) to compute the
   base nightly name, but a manual re-release should revise the *most recent* nightly,
   not today's date. Now finds the latest `nightly-*` tag and creates a revision of that.

2. The mathlib4 nightly-testing trigger was broken:
   - Workflow renamed: `nightly_bump_toolchain.yml` → `nightly_bump_and_merge.yml`
   - `MATHLIB4_BOT` PAT expired after mathlib migrated to GitHub Apps
   - Replace with `actions/create-github-app-token` using the `mathlib-nightly-testing`
     app (requires `MATHLIB_NIGHTLY_TESTING_APP_ID` and
     `MATHLIB_NIGHTLY_TESTING_PRIVATE_KEY` secrets to be configured)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kim-em kim-em force-pushed the nightly-rev-followup branch from da5d067 to be097c5 Compare February 13, 2026 05:56
@kim-em kim-em enabled auto-merge February 13, 2026 06:02
@kim-em kim-em added this pull request to the merge queue Feb 13, 2026
Merged via the queue into master with commit 6ca23a7 Feb 13, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant