Trying to set up scheduled github action

I’m trying to set up an action that will run once an hour but can’t seem to make it work. Here’s my config:

name: Smoke test
on:
  schedule:
    - cron: "0 * * * *"
jobs:
  cypress-run:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Cypress run
        uses: cypress-io/github-action@v2
        with:
          working-directory: smoke-tests
          build: npm ci
        env:
          CYPRESS_PLATFORM_LOGIN: ${{ secrets.PLATFORM_LOGIN }}
          CYPRESS_PLATFORM_PASSWORD: ${{ secrets.PLATFORM_PASSWORD }}

the workflow works with push trigger, but can’t make it run on the schedule. What am i missing?

Looks correct. Has it run in the meantime? It’s not guaranteed that a workflow is run at the exact time and in case of a service disruption some may not get started at all.

Hi,
also keep in mind that schedule is set in UTC.
If your timezone is different you need to set schedule accordingly.

ok, the problem was that workflow was not in master. When i megred the branch, it started working

nope, hasn’t run once by schedule :slightly_frowning_face:
it does run when I change the trigger to [push], so the workflow is not the problem - the trigger is, for sure

Is master the default branch, or is it main?
FWIW, there are no incident reports for May.