aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/scheduled-tasks.yml
blob: d5ff84fef3afca343a849124d39733de1d370c53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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' 3600 &
          ./viewcount-tothemoooon/vc-thm 'https://okky.kr/articles/1519674' 3600 &
          wait
          wait