Skip to content

Bug in scheduling of CIs via cron job #1

@KajbaM

Description

@KajbaM

Hello,
I was looking at this repository as a reference for some mirror synchronization magic and how to deal with having own synchronized downstream when I noticed a little error in the setup.

I noticed that there is following piece of yaml code for scheduling in every workflow file:

on:
  schedule: # At every minute past hour 0, 4, 8, 12, 16, and 20.
    - cron: '* 0,4,8,12,16,20 * * *'
  workflow_dispatch: # And manually on button click.

Using git blame on git-sync-zephyr.yml it tracks down to commit 5331b47 with description "gh-workflow: sync 6 times a day"

However, this cron job string will not schedule the job 6 times a day, but rather every single minute of the 6 hours listed.

@rexut

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions