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 --- .github/workflows/scheduled-tasks.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '.github/workflows/scheduled-tasks.yml') diff --git a/.github/workflows/scheduled-tasks.yml b/.github/workflows/scheduled-tasks.yml index e392992..d5ff84f 100644 --- a/.github/workflows/scheduled-tasks.yml +++ b/.github/workflows/scheduled-tasks.yml @@ -2,17 +2,20 @@ name: Shitcoding run-name: Running scheduled tasks on: schedule: +# 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. - cron: '*/5 * * * *' workflow_dispatch: jobs: Do-snapshot: name: "vc-thm" runs-on: ubuntu-latest + timeout-minutes: 65 steps: - uses: actions/checkout@v3 - name: Run vc-thm run: | - ./viewcount-tothemoooon/vc-thm 'https://okky.kr/articles/1519671' & - ./viewcount-tothemoooon/vc-thm 'https://okky.kr/articles/1519674' & + ./viewcount-tothemoooon/vc-thm 'https://okky.kr/articles/1519671' 3600 & + ./viewcount-tothemoooon/vc-thm 'https://okky.kr/articles/1519674' 3600 & wait wait -- cgit