Skip to content

Commit ba40c74

Browse files
authored
ci: automatically open a PR bumping mathlib to its breaking change (#529)
The `track-incompatibility` action can open a PR pointing to a breaking change, so it can be worked on immediately by checking out the created branch
1 parent 6be5d16 commit ba40c74

1 file changed

Lines changed: 25 additions & 7 deletions

File tree

.github/workflows/lake-update.yml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@
66
#
77
# The provided actions which are used here consume this snapshot, with:
88
#
9-
# bump — updates lakefile.lean/lake-manifest to the LKG mathlib commit
10-
# and opens (or force-pushes) a PR via the mathlib-nightly-testing bot.
11-
# open-issue — opens a persistent issue when an FKB commit is detected (i.e. cslib
12-
# can't yet advance to the mathlib tip), and closes it automatically
13-
# once the incompatibility is resolved.
14-
9+
# bump:
10+
# updates lakefile.lean/lake-manifest to the LKG mathlib commit
11+
# and opens (or force-pushes) a PR via the mathlib-nightly-testing bot.
12+
# track-incompatibility:
13+
# opens
14+
# (1) a persistent issue when an FKB commit is detected (i.e. cslib
15+
# can't yet advance to the mathlib tip)
16+
# (2) a pull request with the dependency pinned to this commit, so issues can be worked on
17+
# closes these automatically once the incompatibility is resolved.
1518
name: Bump mathlib to LKG
1619

1720
on:
@@ -52,5 +55,20 @@ jobs:
5255
permissions:
5356
issues: write
5457
steps:
58+
- name: Generate app token
59+
id: app-token
60+
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
61+
with:
62+
app-id: ${{ secrets.MATHLIB_NIGHTLY_TESTING_APP_ID }}
63+
private-key: ${{ secrets.MATHLIB_NIGHTLY_TESTING_PRIVATE_KEY }}
64+
65+
# We need to check out so the action can open the PR
66+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
67+
5568
- name: Open or update incompatibility issue
56-
uses: leanprover-community/downstream-reports/.github/actions/open-incompatibility-issue@main
69+
uses: leanprover-community/downstream-reports/.github/actions/track-incompatibility@main
70+
with:
71+
open-pr: true
72+
token: ${{ steps.app-token.outputs.token }}
73+
git-user-name: mathlib-nightly-testing[bot]
74+
git-user-email: mathlib-nightly-testing[bot]@users.noreply.github.com

0 commit comments

Comments
 (0)