Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search-100-times #2

Merged
merged 4 commits into from
Feb 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/generate-search-string.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Generate 120 times `Foo is not Bar`

on:
push:
schedule:
- cron: '30 5 * * 1,3'
workflow_dispatch:
inputs:
counter:
description: "Enter an integer"
required: true
type: number
default: 120

jobs:
generate-search-string:
runs-on: ubuntu-latest
env:
SEARCH_STRING: 'Foo is not Bar'
MAX_SEARCH: '120'


steps:
- uses: actions/checkout@v4

- name: Generating ${{ env.SEARCH_STRING }}
run: |
END=0
if [ -z ${{ inputs.counter }} ];
then
END=${{ env.MAX_SEARCH }}
fi
if [ $END -gt '1000' ];
then
END=1000
fi
echo " Generating $END times '${{ env.SEARCH_STRING }}' "
i=1
while [ $i -le $END ]; do
echo "Iteration $i: '${{ env.SEARCH_STRING }}'"
((i++))
done
shell: bash