File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Publish sdist and wheels
22
3- env :
4- SOURCE_REF_TO_BUILD : main
5-
63on :
74 schedule :
85 # 01:01 UTC every Monday and Thursday.
1613 - main
1714 workflow_dispatch :
1815 inputs :
16+ ref :
17+ description : The scikit-learn branch, tag, or commit to build
18+ required : false
19+ default : main
20+ type : string
1921 environment :
2022 description : Which PyPI environment to upload to, if any
2123 required : true
@@ -151,7 +153,7 @@ jobs:
151153 uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
152154 with :
153155 repository : scikit-learn/scikit-learn
154- ref : ${{ env.SOURCE_REF_TO_BUILD }}
156+ ref : ${{ github.event.inputs.ref || 'main' }}
155157 path : scikit-learn-src
156158 persist-credentials : false
157159
@@ -202,7 +204,7 @@ jobs:
202204 uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
203205 with :
204206 repository : scikit-learn/scikit-learn
205- ref : ${{ env.SOURCE_REF_TO_BUILD }}
207+ ref : ${{ github.event.inputs.ref || 'main' }}
206208 path : scikit-learn-src
207209 persist-credentials : false
208210
You can’t perform that action at this time.
0 commit comments