Home > Net >  Github action on scheduled time not running at all?
Github action on scheduled time not running at all?

Time:10-03

Attempting to run a file on a scheduled time (increasing the schedule later) but for some reason, it is not running at all. I am not sure if I have written it correctly.

name: updateStandingsDB

on:
  schedule:
  - cron: '*/1 * * * *'

jobs:
  build-node:
    runs-on: ubuntu-latest
    container: node:16
    steps:
      - name: git checkout
        uses: actions/checkout@v3
      - name: Install
        run: npm install
      - name: Prem
        run: node update-standings/prem.js

Could someone help me understand what I am doing wrong?

CodePudding user response:

Per the documentation at GitHub you cannot set it the way you did:

The shortest interval you can run scheduled workflows is once every 5 minutes.

So I would recommend either trying */5 (or even */10) or simply committing with a fixed time (which is IIRC also in UTC) while you debug.

  • Related