File tree 1 file changed +3
-18
lines changed
1 file changed +3
-18
lines changed Original file line number Diff line number Diff line change 5
5
schedule :
6
6
- cron : ' 30 5 * * 1,3'
7
7
workflow_dispatch :
8
- inputs :
9
- counter :
10
- description : " Enter an integer"
11
- required : true
12
- type : number
13
- default : 120
14
8
15
9
jobs :
16
10
generate-search-string :
@@ -23,20 +17,11 @@ jobs:
23
17
steps :
24
18
- uses : actions/checkout@v4
25
19
26
- - name : Generating ${{ env.SEARCH_STRING }}
20
+ - name : Generating ${{ env.MAX_SEARCH }} times '${{ env. SEARCH_STRING }}'
27
21
run : |
28
- END=0
29
- if [ -z ${{ inputs.counter }} ];
30
- then
31
- END=${{ env.MAX_SEARCH }}
32
- fi
33
- if [ $END -gt '1000' ];
34
- then
35
- END=1000
36
- fi
37
- echo " Generating $END times '${{ env.SEARCH_STRING }}' "
22
+ echo " Generating ${{ env.MAX_SEARCH }} times '${{ env.SEARCH_STRING }}' "
38
23
i=1
39
- while [ $i -le $END ]; do
24
+ while [ $i -le ${{ env.MAX_SEARCH }} ]; do
40
25
echo "Iteration $i: '${{ env.SEARCH_STRING }}'"
41
26
((i++))
42
27
done
You can’t perform that action at this time.
0 commit comments