0

Update:

Nevermind. It wasn't working for the last few hours of me trying to get it up and running. But now, suddenly, it's working.

Action isn't actually going once every five minutes - more like once every 8 minutes or so.

But in any case: It's firing, so I know I've got the syntax right at least. I must have just attempted this right in a window when GitHub was being weird.

Original:

Having some trouble with a GitHub Actions workflow not executing on a schedule as expected.

Reproduced my issue using a simplified workflow. The workflow below has been comitted to my repository as .github/workflows/schedule-test.yml in my master branch.

I've confirmed that the default branch for the repository is master.

I'm expecting this action to run once every five minutes, and it's not.

I have also tried */10 * * * * and */15 * * * * and those aren't working either.

Pretty sure this is one of those "you missed something small but super obvious in hindsight" type of things. Any assistance welcome.

name: Schedule Test

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

jobs:

    test:
        runs-on: ubuntu-latest

        steps:
            - name: Log test
              run: echo "Test"

2 Answers 2

0

Instead of run: echo "Test"

try

- run: echo "Test"
New contributor
N.Tsa is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
0

Nevermind. It wasn't working for the last few hours of me trying to get it up and running.

Now, suddenly, it's working.

Action isn't actually going once every five minutes - more like once every 8 minutes or so.

But in any case: It's firing, so I know I've got the syntax right at least. I must have just attempted this right in a window when GitHub was being weird.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.