How to make a github action run on a cron schedule

Viewed 44

I have the following github action that is not working:

name: Scheduled Cypress Tests

on:
  schedule:
    # Runs at 8:20am UTC every day (see https://crontab.guru)
    - cron: '20 8 * * *'
jobs:
  cypress-tests:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [16.x]
    container:
      image: cypress/browsers:node16.5.0-chrome94-ff93
    steps:
      - uses: actions/checkout@v3
      - name: setup node ${{ matrix.node-version }}
        uses: actions/setup-node@v3
        with:
          node-version: ${{ matrix.node-version }}
      - name: install packages with yarn
        uses: Borales/actions-yarn@v3
      - run: yarn test:components

I expected this to run at 8:20am UTC (4:20am EST) however it did not run (and while this action shows up in the actions list, there is literally no executed jobs for it there) and the same job runs fine when attached to a PR so I am not sure what I am doing wrong here.

0 Answers
Related