Github action runs on push, not scheduled

I am running the example of a JavaScript GitHub action, which works when triggered by a push event, but not when triggered by a cron schedule. I expect the action to run every 5 minutes, but it doesn’t.

Here is my code for reference:

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

jobs:
  hello_world_job:
    runs-on: ubuntu-latest
    name: A job to say hello
    steps:
    - name: Hello world action step
      id: hello
      uses: StephenVNelson/website/@3-experiment-with-actions
      with:
        who-to-greet: 'Mona the Octocat'
    # Use the output from the `hello` step
    - name: Get the output time
      run: echo "The time was ${{ steps.hello.outputs.time }}"
name: 'Hello World'
description: 'Greet someone and record the time'
inputs:
  who-to-greet:  # id of input
    description: 'Who to greet'
    required: true
    default: 'World'
outputs:
  time: # id of output
    description: 'The time we greeted you'
runs:
  using: 'node12'
  main: './github-actions/main.js'
const core = require('@actions/core');
const github = require('@actions/github');

try {
  // `who-to-greet` input defined in action metadata file
  const nameToGreet = core.getInput('who-to-greet');
  console.log(`Hello ${nameToGreet}!`);
  const time = (new Date()).toTimeString();
  core.setOutput("time", time);
  // Get the JSON webhook payload for the event that triggered the workflow
  const payload = JSON.stringify(github.context.payload, undefined, 2)
  console.log(`The event payload: ${payload}`);
} catch (error) {
  core.setFailed(error.message);
}

I am running a JavaScript GitHub action, which works when triggered by a push event, but not when triggered by a cron schedule. I expect the action to run every 5 minutes, but it does not. Here is my code for reference:

The issue might be with the GitHub token not having sufficient permissions to trigger the cron schedule. Add repo and workflow scopes to your GitHub token in the repository secrets. To do this, go to your repository settings, then click on “Secrets” from the sidebar, and add a new secret with the name ACTIONS_TOKEN and the value of your GitHub token with the added scopes.