Update Lean Project #141
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Lean Project | |
| on: | |
| schedule: | |
| - cron: "0 10 * * *" # every day | |
| workflow_dispatch: # allows workflow to be triggered manually | |
| jobs: | |
| update_lean: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| issues: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Get latest Lean nightly | |
| run: curl -s release.lean-lang.org | jq -r '.nightly[0].name' | sed 's/^/leanprover\/lean4:/' > lean-toolchain | |
| - name: Update Lean project | |
| uses: leanprover-community/lean-update@main | |
| with: | |
| update_if_modified: lean-toolchain | |
| on_update_succeeds: "commit" | |
| on_update_fails: "issue" | |
| update_lean_toolchain: "never" |