Skip to content

Commit d083ead

Browse files
authored
Add update action (#191)
1 parent 698913d commit d083ead

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/update.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Update Lean Project
2+
3+
on:
4+
schedule:
5+
- cron: "0 10 * * *" # every day
6+
workflow_dispatch: # allows workflow to be triggered manually
7+
8+
jobs:
9+
update_lean:
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
issues: write
14+
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
- name: Get latest Lean nightly
20+
run: curl -s release.lean-lang.org | jq -r '.nightly[0].name' | sed 's/^/leanprover\/lean4:/' > lean-toolchain
21+
- name: Update Lean project
22+
uses: leanprover-community/lean-update@main
23+
with:
24+
update_if_modified: lean-toolchain
25+
on_update_succeeds: "commit"
26+
on_update_fails: "pr"

0 commit comments

Comments
 (0)