Skip to content

Commit 04bf84a

Browse files
authored
Merge pull request #143 from leanprover-community/develop
Develop
2 parents b43a749 + 90f5c56 commit 04bf84a

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,16 @@ This parameter is passed to the lake-package-directory argument of leanprover/le
178178

179179
Default: `.`
180180

181+
### `update_lean_toolchain`
182+
183+
Controls whether to update the lean-toolchain file for projects with no dependencies.
184+
185+
Allowed values:
186+
* `auto`: Automatically update lean-toolchain to the latest stable release (default behavior)
187+
* `never`: Never update the lean-toolchain file
188+
189+
Default: `auto`
190+
181191
### `token`
182192

183193
A Github token to be used for committing and creating issues/PRs.

action.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ inputs:
5252
This parameter is passed to the lake-package-directory argument of leanprover/lean-action.
5353
required: false
5454
default: "."
55+
update_lean_toolchain:
56+
description: |
57+
Controls whether to update the lean-toolchain file for projects with no dependencies.
58+
Allowed values:
59+
* `auto`: Automatically update lean-toolchain to the latest stable release (default behavior)
60+
* `never`: Never update the lean-toolchain file
61+
Default: `auto`
62+
required: false
63+
default: "auto"
5564
token:
5665
description: |
5766
A Github token to be used for committing
@@ -107,7 +116,7 @@ runs:
107116
working-directory: ${{ inputs.lake_package_directory }}
108117

109118
- name: Update lean-toolchain
110-
if: ${{ steps.find-dependencies.outputs.outcome == 'no-depencency' }}
119+
if: ${{ steps.find-dependencies.outputs.outcome == 'no-depencency' && inputs.update_lean_toolchain == 'auto' }}
111120
run: |
112121
: Update lean-toolchain
113122
node ${{ github.action_path }}/scripts/getLatest.js

0 commit comments

Comments
 (0)