File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,16 @@ This parameter is passed to the lake-package-directory argument of leanprover/le
178
178
179
179
Default : ` .`
180
180
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
+
181
191
# ## `token`
182
192
183
193
A Github token to be used for committing and creating issues/PRs.
Original file line number Diff line number Diff line change @@ -52,6 +52,15 @@ inputs:
52
52
This parameter is passed to the lake-package-directory argument of leanprover/lean-action.
53
53
required : false
54
54
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"
55
64
token :
56
65
description : |
57
66
A Github token to be used for committing
@@ -107,7 +116,7 @@ runs:
107
116
working-directory : ${{ inputs.lake_package_directory }}
108
117
109
118
- 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' }}
111
120
run : |
112
121
: Update lean-toolchain
113
122
node ${{ github.action_path }}/scripts/getLatest.js
You can’t perform that action at this time.
0 commit comments