Skip to content

Commit 89c7cb6

Browse files
committed
ci: verbose input
1 parent fea67d3 commit 89c7cb6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/integrity-check.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,16 @@ jobs:
9191
chunk=$(curl -s "https://www.codewars.com/kata/${kata_id}" | awk 'NR > 0 {print tolower(substr($0, 9650, 350))}')
9292
actual=$(echo "$chunk" | grep -oP '(?<=<span>).*?(?=</span>)' | sed 's/ /-/g')
9393
same=$([[ "${{ github.event.inputs.rank }}" == "$actual" || ("${{ github.event.inputs.rank }}" == "beta" && "$actual" == "draft") ]] && echo true || echo false)
94+
timeout=$((RANDOM % ${{ github.event.inputs.max_sleep }} + 1))
9495
9596
if [[ "${{ github.event.inputs.verbose }}" == 'true' || "$same" == 'false' ]]; then
9697
progress="[$sid / ${{ needs.setup.outputs.kata_count }}]"
9798
status=$([ "$same" ] && echo "✅" || echo "⚠️")
9899
message="$status https://www.codewars.com/kata/$kata_id ($actual)"
99100
echo "$progress $message" | tee -a "report_${{ matrix.fork_sid }}.txt"
101+
echo "wait $timeout sec"
100102
fi
101-
sleep $((RANDOM % ${{ github.event.inputs.max_sleep }} + 1))
103+
sleep $timeout
102104
done < ids.txt
103105
104106
- name: Upload status report

0 commit comments

Comments
 (0)