File tree 2 files changed +10
-8
lines changed
2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ name: Collect_Build
4
4
on :
5
5
workflow_dispatch :
6
6
inputs :
7
- amount :
8
- description : ' Amount of projects to fetch. For production this should be 1000 or higher.'
9
- required : true
10
- type : number
11
- default : 1000
7
+ # amount:
8
+ # description: 'Amount of projects to fetch. For production this should be 1000 or higher.'
9
+ # required: true
10
+ # type: number
11
+ # default: 1000
12
12
deploy :
13
13
description : ' Docs shall be deployed'
14
14
required : true
34
34
ON_CI : True
35
35
GH_KEY : ${{ secrets.GITHUB_TOKEN }}
36
36
AWESOMESPHINX_NEEDS_FILE : " /../awesome.json"
37
- AWESOMESPHINX_AMOUNT : ${{ github.event.inputs.amount }}
37
+ AWESOMESPHINX_AMOUNT : 1000
38
38
steps :
39
39
- uses : actions/checkout@v3
40
40
with :
Original file line number Diff line number Diff line change 29
29
30
30
# Used during development to reduce amount of data to fetch
31
31
# Normally a search contains ~600 findings
32
- MAX_DATA = os .environ .get ('AWESOMESPHINX_AMOUNT' , 3 )
32
+ MAX_DATA = os .environ .get ('AWESOMESPHINX_AMOUNT' , - 1 )
33
+ if MAX_DATA == - 1 :
34
+ MAX_DATA = 1000
33
35
34
36
if MAX_DATA == '' or MAX_DATA is None :
35
- MAX_DATA == 3
37
+ MAX_DATA == 1000
36
38
try :
37
39
MAX_DATA = int (MAX_DATA )
38
40
except ValueError :
You can’t perform that action at this time.
0 commit comments