From be3b15d64e9f6b8c2489b296c7f4b63487aa5564 Mon Sep 17 00:00:00 2001 From: David Timber Date: Tue, 12 Nov 2024 01:17:31 +0100 Subject: Run every hour for one hour, rather than 5 minutes --- viewcount-tothemoooon/vc-thm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'viewcount-tothemoooon/vc-thm') diff --git a/viewcount-tothemoooon/vc-thm b/viewcount-tothemoooon/vc-thm index d285edf..0f8a0a8 100755 --- a/viewcount-tothemoooon/vc-thm +++ b/viewcount-tothemoooon/vc-thm @@ -17,14 +17,12 @@ pull_url () { done } -if [ -z "$1" ]; then +if [ "$#" -lt 2 ]; then echo "Usage: $ARGV0 [TIMEOUT]" >& 2 exit 2 fi -# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule -# > The shortest interval you can run scheduled workflows is once every 5 minutes. -[ -z "$2" ] && TIMEOUT=270 || TIMEOUT="$2" +TIMEOUT="$2" set -e -- cgit