Skip to content

Commit 09adda7

Browse files
authored
Merge pull request #3 from radiomix/echo-120-times
echo-120-times
2 parents d664197 + e585204 commit 09adda7

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

.github/workflows/generate-search-string.yaml

+3-18
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ on:
55
schedule:
66
- cron: '30 5 * * 1,3'
77
workflow_dispatch:
8-
inputs:
9-
counter:
10-
description: "Enter an integer"
11-
required: true
12-
type: number
13-
default: 120
148

159
jobs:
1610
generate-search-string:
@@ -23,20 +17,11 @@ jobs:
2317
steps:
2418
- uses: actions/checkout@v4
2519

26-
- name: Generating ${{ env.SEARCH_STRING }}
20+
- name: Generating ${{ env.MAX_SEARCH }} times '${{ env.SEARCH_STRING }}'
2721
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 }}' "
3823
i=1
39-
while [ $i -le $END ]; do
24+
while [ $i -le ${{ env.MAX_SEARCH }} ]; do
4025
echo "Iteration $i: '${{ env.SEARCH_STRING }}'"
4126
((i++))
4227
done

0 commit comments

Comments
 (0)