Skip to content

Commit fadf624

Browse files
authored
Workaround for lean-update action touching the lean-toolchain file (#194)
1 parent e7e02f1 commit fadf624

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/update.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
uses: actions/checkout@v4
1919
- name: Get latest Lean nightly
2020
run: curl -s release.lean-lang.org | jq -r '.nightly[0].name' | sed 's/^/leanprover\/lean4:/' > lean-toolchain
21+
- name: Append empty lines to lake-manifest.json to trick lean-update into leaving the lean-toolchain file alone
22+
run: printf '\n%.0s' {1..10} >> lake-manifest.json
2123
- name: Update Lean project
2224
uses: leanprover-community/lean-update@main
2325
with:

0 commit comments

Comments
 (0)